-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
User variables specified with -var doesn't have to be declared in the variables block #6473
Comments
Tested on a bunch of old binaries; this was first broken in 1.0.0. |
Scratch that -- introduced in 0.12.1 |
Actually, I was misreading output; this has been broken since at least 0.12, but probably before. I'm not going to search further back for where this was introduced, if it ever worked. |
I ended up going back a bit further; this has never worked as you're interpreting as far as I can tell. We can either change the code or change the docs. To be honest I'm leaning towards changing the docs, since I'm worried changing this to match the documentation will break a lot of templates. |
I agree, if this have been working like this since the dark ages let's keep it as it is and correct the docs. If it's easy to add i think it would be great if we logged a warning/info when a undeclared variable is passed. This gives us a better position if we want to change this in the future and helps troubleshooting misspellings etc. |
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. |
Example template:
https://github.com/awslabs/amazon-eks-ami/blob/master/eks-worker-al2.json
This contradicts what the documentation says:
See User Variables - Usage
The text was updated successfully, but these errors were encountered: