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

use TF_WORKSPACE to select and/or create the active workspace #515

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

mcalhoun
Copy link
Member

@mcalhoun mcalhoun commented Jan 17, 2024

what

Use the TF_WORKSPACE environment variable to select and/or create the terraform workspace.

why

This is a better solution than the existing one of running two external terraform workspace select and terraform workspace new commands, with one expecting to fail if the workspace hasn't been created yet.

references

Closes #192

@mcalhoun mcalhoun requested review from a team as code owners January 17, 2024 22:12
@mcalhoun mcalhoun requested review from jamengual and woz5999 January 17, 2024 22:12
@aknysh aknysh merged commit a8498be into master Jan 18, 2024
6 checks passed
@aknysh aknysh deleted the feature/use-TF_WORKSPACE-for-setting-workspace branch January 18, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instead of selecting the workspace, set the TF_WORKSPACE env var
2 participants