Skip to content

Terraform workspace support #549

Answered by corrieriluca
fdebuire asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

You can simply use the TF_WORKSPACE environment variable to indicate on which workspace Terraform needs to run its plan/apply.

Using the override runner spec feature of Burrito, you could create 3 TerraformLayer resources, each having a different value for the TF_WORKSPACE env var in the overrideRunnerSpec.env array (dev, preprod, prod).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by corrieriluca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants