-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
terraform apply
crashes if a variable's default is set to a list
#1344
Comments
Is this with master? |
It's on 19d6fdf, which is from Mon Mar 30 15:01:04. I just noticed something got frazzled in writing this issue though - those are unicode quotation marks in my step 2. I had “testcase”, but it should be "testcase" of course. Try again now. |
Fixed in PR #1590. Thanks. |
terraform: don't panic on input for bad default type [GH-1344]
* origin/master: update CHANGELOG provider/aws: fix vet error, missing fmt param update CHANGELOG update CHANGELOG update CHANGELOG terraform: don't panic on input for bad default type [hashicorpGH-1344] helper/ssh: add random number to script [hashicorpGH-1545] Allow using deprecated security_groups in NI spec provider/aws: Fix issue when creating ELB with no tags Refresh state for deleted s3 bucket correctly Added Docker links support to the docker_container resource. providers/aws: check allocationId only if it's vpc, fixes hashicorp#1345
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. |
If you set a variable’s default to a list, then
terraform apply
exits with an ugly crash.Here’s my test case:
Make a new directory and cd into it:
Make a testcase terraform config:
Try running terraform apply:
I stumbled on this while crossing my fingers that I could set a default to a list of CIDR blocks to whitelist in an AWS security group. I’m fine with lists being verboten, but the error should be clearer.
The text was updated successfully, but these errors were encountered: