Terraform
Terraform manages infrastructure changes as code, and AWS CodePipeline executes those changes in each environment.
Production
On the production environment, after code is merged into the master branch, a release should be triggered in CodePipeline.
Steps:
- Open AWS CodePipeline.
- Select the production Terraform pipeline.
- Confirm the latest commit on
masteris included. - Trigger Release change.
- Monitor
planandapplystages until completion.
Sandbox
On the sandbox environment, after code is pushed into the dev branch, the changes are automatically deployed through CodePipeline.
Steps:
- Push changes to
dev. - Verify the sandbox pipeline starts automatically.
- Check pipeline logs for
planandapplyresults. - Validate the applied infrastructure changes in the sandbox environment.