Update terraform links to new paths
This commit is contained in:
parent
383228fded
commit
6a91e5273f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue