Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for workspace specific tfvar file #34138

Closed
Kralizek opened this issue Oct 25, 2023 · 2 comments
Closed

Support for workspace specific tfvar file #34138

Kralizek opened this issue Oct 25, 2023 · 2 comments
Labels
duplicate issue closed because another issue already tracks this problem enhancement

Comments

@Kralizek
Copy link

Terraform Version

$ terraform version     
Terraform v1.5.7
on windows_amd64

Use Cases

I have an application that uses workspaces to deploy different environments. I want to have workspace-specific variable values to be used to differentiate each environment (e.g. auto scaling limit, instance type and so on).

Attempted Solutions

Right now we can either import a file passing its path as a argument of the CLI or create a map for each setting that has the workspace name as key.

Proposal

Ideally it would be files named like terraform.dev.tfvars and terraform.stage.tfvars.

To simplify filtering, a new extension could be introduced, like wstfvars so that's easier to select all those files who end with that extension and include the name of the current workspace.

References

No response

@Kralizek Kralizek added enhancement new new issue not yet triaged labels Oct 25, 2023
@jbardin
Copy link
Member

jbardin commented Oct 25, 2023

Duplicate of #15966

@jbardin jbardin marked this as a duplicate of #15966 Oct 25, 2023
@jbardin jbardin closed this as completed Oct 25, 2023
@jbardin jbardin added the duplicate issue closed because another issue already tracks this problem label Oct 25, 2023
@crw crw removed the new new issue not yet triaged label Oct 25, 2023
Copy link

github-actions bot commented Dec 7, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate issue closed because another issue already tracks this problem enhancement
Projects
None yet
Development

No branches or pull requests

3 participants