How to Use Terraform to Modify AWS Infrastructure - QualitativeDataRepository/TechnicalTeam GitHub Wiki
This page provides instructions on how to modify QDR resources in AWS using Terrafom.
Local environment setup
- Install Terraform 0.12.24
- Install Terragrunt v0.23.14
- Clone QDR Terraform Repository
- Populate
~/.aws/credentials
using breakglass-admin credentials.
Running plan and apply
- Make changes to Terraform resources
- Run
./tf-plan
to display plan output - (Optionally) Run
./tf-apply
to apply changes from your laptop (this is not recommended, it is best to use the CI job if possible) - Merge changes to
develop
branch - Click "Build Now" to run Terraform in Jenkins
- Observe plan output and confirm to apply changes