-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Setting instance_count = 0 leads to error with Terrafrom 0.12 #104
Comments
Hmm, this issue is unpredictable, as far as I know. I don't have any workaround here, but after some |
I don't understand why the setting of thisi_placement_group is different than the other variables. Shouldn't this_placement_group = compact(concat(coalescelist(aws_instance.this..placement_group, aws_instance.this_t2..placement_group), [""])) be this_placement_group = compact(coalescelist(aws_instance.this..placement_group, aws_instance.this_t2..placement_group, [""])) or something similiar, that is add an a list of one empty string if others are null |
Thanks for opening this issue. This has been just fixed and v2.5.0 has been released. |
See eg - hashicorp/terraform#21370 - terraform-aws-modules/terraform-aws-ec2-instance#104 I have not tested whether this breaks terraform 0.11 destroy, but based on what I read it should not.
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. |
In my setup I have modules with instance_count = 0 for some environments.
Upgrading to Terraform 0.12 breaks this setup:
This happens because behaviour of coalescelist function used in outputs.tf has been changed in Terraform 0.12: hashicorp/terraform#21370
The text was updated successfully, but these errors were encountered: