-
Is there a way to inject variables into Terraform from another process outside of Terraform? For example: I'm running an automated test where at some point I'm creating an AMI. I want to pass this AMI ID as a var in Terraform running in a CI / CD pipeline, so that I can have Terraform spin up that image. |
Beta Was this translation helpful? Give feedback.
Answered by
rhoboat
Sep 30, 2021
Replies: 1 comment
-
Most likely you'll need to set a variable in Terraform using one of the standard ways of assigning values to root module variables. If you're using Terragrunt, you would write the value to a Some programmatic options:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rhoboat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Most likely you'll need to set a variable in Terraform using one of the standard ways of assigning values to root module variables. If you're using Terragrunt, you would write the value to a
terragrunt.hcl
file.Some programmatic options:
terraform-update-variable
, which is a bash script that can update atfvars
orterragrunt.hcl
file and commit the update to git: https…