Skip to content

Conversation

vfoucault
Copy link

@vfoucault vfoucault commented Nov 18, 2021

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"),
}

* to be used like

```hcl
var options = []tfexec.PlanOption{
  tfexec.EnvVar("SOME_ENV_VAR", "SOME_VALUE"),
  tfexec.EnvVar("OTHER_ENV_VAR", "OTHER_VALUE"),
}
```
@vfoucault vfoucault changed the title feat: Added env var support wip feat: Added env var support Nov 18, 2021
@vfoucault vfoucault changed the title wip feat: Added env var support feat: Added env var support Jan 12, 2022
@hashicorp-cla
Copy link

hashicorp-cla commented Mar 12, 2022

CLA assistant check
All committers have signed the CLA.

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.

2 participants