terraform-exec icon indicating copy to clipboard operation
terraform-exec copied to clipboard

feat: Added back TF_WORKSPACE support

Open vfoucault opened this issue 4 years ago • 2 comments

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 avatar Nov 18 '21 21:11 vfoucault

@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 !

vfoucault avatar Jan 12 '22 09:01 vfoucault

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Mar 12 '22 18:03 hashicorp-cla