There are obstacles to testing local development in personal AWS accounts. One is that the backend state for each account cannot use the same bucket name - requiring users to change the code manually before pushing changes to the repo.
In order to better facilitate local development for users using a personal AWS account, we need to provide a shell for the backend.tf code (instead of hardcoding it) and update the GitHub Action workflows to use a prod.backend.tfvars file.
Action Items
[x] Update the backend.tf file and replace w/ the following (we need it empty)
terraform {
backend "s3" {
}
}
[x] Create a prod.backend.tfvars file with the following configuration:
Overview
There are obstacles to testing local development in personal AWS accounts. One is that the backend state for each account cannot use the same bucket name - requiring users to change the code manually before pushing changes to the repo.
In order to better facilitate local development for users using a personal AWS account, we need to provide a shell for the backend.tf code (instead of hardcoding it) and update the GitHub Action workflows to use a
prod.backend.tfvars
file.Action Items
prod.backend.tfvars
file with the following configuration:CONTRIBUTING.md
for developers to create a backend.tfvars file w/ their backend configsbackend.tfvars
to .gitignoreResources