This terraform configuration is used to create the network of this server and this terraform state will be shared to the workspace above. This network is used to test canary and rolling deployment.
- Use Terraform Cloud as the backend. Create new workspace and create environment variables
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
. - Create github actions for Terraform.
- Create github secrets
GITHUB_TOKEN
. - For production used, create branch rule to protect main branch and enable require status checks to pass before merging.
- Allow remote state access by navigating to "Settings" page, under "General" tab. Scroll to the "remote state sharing" section.
- Edit variavle
traffic_distribution
according totraffic_dist_map
to configure the load balancer weight.