This is the associated code for this blog post. It's meant to serve as a simple example of using Terrafom + Github Actions together.
The Terraform code is not substantial. This example is to demonstrate worflows for PRs and merges.
Look in .github/workflows/ for the interesting bits.
Do not use this code without Branch Protection enabled!
At the very least you should Require status checks before merging enabled and set to "Strict" such that the "Require branches to be up to date before merging" checkbox is checked.