terraform
terraform copied to clipboard
Terraform Test: Allow Setting Terraform Workspaces at run block level
Terraform Version
1.7.0
Use Cases
Our configuration uses a single backend with workspaces, one workspace per team, to deploy github teams and related resources.
Running these deployments in the same workspace causes various errors.
Attempted Solutions
Using separate provider instances did not help, as it does not run run
blocks on separate workspaces.
Proposal
Allow setting the Terraform workspace at run
block level.
References
No response
Thanks for this feature request! If you are viewing this issue and would like to indicate your interest, please use the 👍 reaction on the issue description to upvote this issue. We also welcome additional use case descriptions. Thanks again!
Hey @deepbrook, I'd love to learn more about your use cases and workflow. Do you mind emailing me [email protected] and we can chat live about this?
I'd be really keen to see this feature too. We make extensive use of the workspace variable for composing various different values for things like resource naming as well as some boolean logic. It would be really handy to be able to set this per run rather than running the whole suite of tests per workspace.
@m13t mind emailing me and we can find time to chat through and understand your use cases more? [email protected]