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 env var support #248

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

None yet

2 participants