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

feat: Added env var support

Open vfoucault opened this issue 4 years ago • 1 comments

This pr is meant to add the support of passing Environment variables to a specific terraform-exec run.

When you want to exec multiple runs in parallel that you can't manage, and using os.Environ directly is not an option

  • to be used like
var options = []tfexec.PlanOption{
  tfexec.EnvVar("SOME_ENV_VAR", "SOME_VALUE"),
  tfexec.EnvVar("OTHER_ENV_VAR", "OTHER_VALUE"),
}

vfoucault avatar Nov 18 '21 17:11 vfoucault

CLA assistant check
All committers have signed the CLA.

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