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

Any plans to get round "Value for undeclared variable" in future releases #25

Open
alepeltier opened this issue Aug 22, 2019 · 5 comments

Comments

@alepeltier
Copy link

Hello,

We're using tfscaffold along with Terraform 0.12.6. Tf 12 returns the following warning when we run a component.

Warning: Value for undeclared variable
on ...../terraform/etc/env_eu-west-1_staging.tfvars line 28:
28: service_plugin_list = [
29: "key-auth",
30: "syslog"
31: ]
The root module does not declare a variable named "service_plugin_list". To
use this value, add a "variable" block to the configuration.
Using a variables file to set an undeclared variable is deprecated and will
become an error in a future release. If you wish to provide certain "global"
settings to all configurations in your organization

I'm using a standard setup of an env file containing variables for multiple components. Is there any plan to change how tfscaffold works to get around how terraform will be handling environment variables?

@JoshCarter-ops
Copy link

Also having this issue

@Zordrak
Copy link
Collaborator

Zordrak commented Jan 29, 2020

I am working very hard on addressing this issue with hashicorp. I've spoken directly with several of the people concerned. I have hope that they will change it from a deprecation to an optional flag. if they don't, and they continue with the intent of deprecating it completely, the only option will be to wipe the explicitly declare all environment variables whether used or not for every component, or something rather hacky in scaffold to detect declared variables and only passed those that have been declared, which is the solution I'd rather avoid.

@Zordrak
Copy link
Collaborator

Zordrak commented Jan 29, 2020

@Zordrak
Copy link
Collaborator

Zordrak commented Jan 29, 2020

@alepeltier
Copy link
Author

@Zordrak brilliant thank you for the update. I'm looking forward to hearing how HashiCorp handles it.

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

No branches or pull requests

3 participants