Using Git workflow with Terraform and AWS Backend. See the full blog post here. https://hyperdrive.tech/blog/using-github-actions-terraform-and-aws/
- fork/clone repo
- Modify
provider.tfand addbucket,key,region. (Bucket must be created outside terraform) - Add secret environments of
AWS_SECRET_ACCESS_KEYandAWS_ACCESS_KEY_IDinfo here - Enable branch protection on master
- Use Gitflow
git clone git@github.com:hyperdrivetech/AWS-Terraform-Github-Actions.git
MIT