...
We use Atlantis to automate the generation of Terraform execution plans from our configuration files in pull - requests.
Configuration for Atlantis automation itself lives here: https://github.com/edx/terraform/blob/5d02d5085a32338ed0b63a7ea3e4cc9b62366d48/atlantis.yaml
This section of atlantis.yaml
ensures that when modules in modules/frontend change terraform plan
will be executed on terraform configuration plans/edx/prod-frontends
.
...
When pull requests are made in the the edx/terraform repository, Atlantis will automatically run terraform plan
and comment on the PR with the plan output. The plan is applied by commenting atlantis apply
on the PR after a reviewer has approved. If all plans apply successfully Atlantis will automatically merge the PR and Github will delete the branch automatically.
...
Deployment Pipelines
We run continuous deployments of our frontends to the infrastructure we set up using Terraform in the previous section. These continuous deployments are performed using GoCD.
...