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

Env variables require default values #1930

Closed
clstokes opened this issue May 12, 2015 · 2 comments · Fixed by #1958
Closed

Env variables require default values #1930

clstokes opened this issue May 12, 2015 · 2 comments · Fixed by #1958
Assignees

Comments

@clstokes
Copy link
Contributor

The work to allow setting Terraform variables via environment variables (#62 and #1621) is great, but it requires that variables have default values - which is not ideal for variables such as AWS credentials. I would expect variables passed via environment variables to not require defaults the same as if they were set in a tfvars file.

$ TF_VAR_aws_access_key=asdf TF_VAR_aws_secret_key=1234 terraform plan
There are warnings and/or errors related to your configuration. Please
fix these before continuing.

Errors:

  * Required variable not set: aws_access_key
  * Required variable not set: aws_secret_key
@mitchellh
Copy link
Contributor

Ah, this is a bug. Thanks.

@ghost
Copy link

ghost commented May 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants