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

feat: Added back TF_WORKSPACE support #249

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vfoucault
Copy link

Since I don't know why TF_WORKSPACE env var has been explicitly removed in #75, I propose to add it back to resolve #247

When you want to perform some terraform operation in parallel in different workspaces, there are two option, either you copy the terraform code into another directory or use the TF_WORKSPACE variable.

I've added a WorkSpaceOption for each and every related command since copying and duplicating code is not an option

usage:

var options = []tfexec.ApplyOption{
		tfexec.WorkSpace("some_workspace"),
	}

@vfoucault
Copy link
Author

@kmoe @radeksimko I know guys that you might be busy on other tasks, but could you by any chance give some time to review this PR ? Many thanks !

@hashicorp-cla
Copy link

hashicorp-cla commented Mar 12, 2022

CLA assistant check
All committers have signed the CLA.

vfoucault added 2 commits May 11, 2022 11:52
through `WorkSpaceOption`.

usage:

```hcl
var options = []tfexec.ApplyOption{
		tfexec.WorkSpace("some_workspace"),
	}
```
through `WorkSpaceOption`.

usage:

```hcl
var options = []tfexec.ApplyOption{
		tfexec.WorkSpace("some_workspace"),
	}
```
@vfoucault vfoucault force-pushed the feat/add_TF_WORKSPACE_support branch from a3ae93e to 4384294 Compare May 11, 2022 09:53
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.

TF_WORKSPACE support
2 participants