Update terraform links to new paths

This commit is contained in:
Maciej Skierkowski 2017-12-11 22:05:50 -08:00
parent 383228fded
commit 6a91e5273f
1 changed files with 2 additions and 2 deletions

View File

@ -48,12 +48,12 @@ complete and uploaded.
1. Add a new step to the CI/CD pipeline.
2. In the new step add a `curl` call to update the variables in the workspace
using the [update variables
API](https://www.terraform.io/docs/enterprise-beta/api/variables.html#update-variables),
API](https://www.terraform.io/docs/enterprise/api/variables.html#update-variables),
so that Terraform has a reference to the latest image. For the sample
configuration above, the `aws_ami_id` variable should be updated to the AMI
ID of the latest image.
3. In that same step, add another `curl` call to [create a new run via the
API](https://www.terraform.io/docs/enterprise-beta/api/run.html#create-a-run).
API](https://www.terraform.io/docs/enterprise/api/run.html#create-a-run).
A run performs a plan and apply on the last configuration version created,
using the variables set in the workspace. In the previous step we update the
variables, so the new run can be created using the previous configuration