terraform icon indicating copy to clipboard operation
terraform copied to clipboard

Terraform Test: Allow Setting Terraform Workspaces at run block level

Open deepbrook opened this issue 5 months ago • 2 comments

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

deepbrook avatar Jan 26 '24 13:01 deepbrook

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!

crw avatar Jan 29 '24 23:01 crw

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?

omarismail avatar Feb 15 '24 20:02 omarismail

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 avatar Mar 12 '24 12:03 m13t

@m13t mind emailing me and we can find time to chat through and understand your use cases more? [email protected]

omarismail avatar Mar 13 '24 17:03 omarismail