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 Terraform workspaces #30

Open
gureya opened this issue Feb 16, 2023 · 3 comments
Open

Support for Terraform workspaces #30

gureya opened this issue Feb 16, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@gureya
Copy link

gureya commented Feb 16, 2023

Possibility to manage multiple environments using workspaces.

@alfespa17
Copy link
Member

hello @gureya can you explain it a little bit more, what do you mean with workspaces?

@gureya
Copy link
Author

gureya commented Feb 17, 2023

Basically, I needed support for the terraform workspace command (https://developer.hashicorp.com/terraform/cli/workspaces) which I cannot find in the current implementation. The workspace command will enable me to manage multiple deployments of the same configuration.

For instance, before executing terraform plan/apply/destroy commands, I will like to select/create a particular workspace by executing a command like terraform workspace select NAME.

Is there any reason why you have not considered supporting the workspace command?

@alfespa17
Copy link
Member

alfespa17 commented Feb 17, 2023

Hello @gureya now I understand what you are saying.

You could handle environments using different folders in your filesystem as an alterntive, from my side I wont spend time adding this feature because it not something we need in terrakube.

In Terrakube we handle "workspaces" internally in our backend without using the "workspace command".

If someone would like to add this feature in the library I am open to review any pull request with the necessary changes

This is the class that needs to be updated in order to support new commands.

https://github.com/AzBuilder/terraform-spring-boot/blob/master/terraform-client/src/main/java/org/terrakube/terraform/TerraformClient.java

@alfespa17 alfespa17 added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants