The terraform files within this directory represents the infrastructure-as-code for the Beacons Registration Project.
Before the pipeline can be trigger to deploy to AWS, the following setup is required:
- S3 bucket configured. Bucket key needs to match that in provider.tf
- Dynamo DB table configured. See Terraform docs
- Create ECR for the docker images of the webapp and service and update secrets in webapp and service repositories
- Ensure that the terraform workspaces for all environments exist
terraform workspace new ${env_name}where env_name isdev,stagingorproductionterraform workspace listallows you to view existing workspaces
- Ensure that the terraform variables file (e.g.
dev.tfvars,staging.tfvars) for each environment exists
For upgrading terraform see Terraform's upgrade guide.
For upgrading modules and plugins run the command terraform init --upgrade in the current directory. See official docs.