-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Invalid dynamic for_each
value for launch templates
#1325
Comments
So a workaround that worked for me was removing the default option
and adding in every |
Hi, |
Ran into the same issue when trying an upgrade to TF 0.15.3 (from 0.14) today. Diving into the error and looking around has led to a lot of confusion. The format for additional_ebs_volumes given here is a list of maps. But looking at one of the several places this value is used (either via a default or a value passed as one of the worker group configs) it is passed into a for each. The docs for for_each specify it must take either a map or set of strings. Except, for_each inside of a dynamic seems to be treated specially according the the docs for dynamic. Importantly, it states that for_each accepts "any collection or structural value". At least at the moment this feels to me like a regression in terraform itself (which is treating the 'special' for_each inside dynamic as a normal one), but I haven't had time to try and pin it down further yet. |
Hi, Same issue, proposed workaround does not work for me. Thanks, |
Working from my thoughts about the two scopes of for_each above, spent some time today trying to replicate the issue at the terraform level with the goal to get something that would be reportable as a bug to the TF repo directly. First I tried using Perhaps someone else will have more luck isolating? I still don't think its an issue with this module due to the nature of the error and it only presenting on a TF upgrade, but it doesn't seem my idea above was correct. |
@mmcguinn thanks for checking it out, I will try to replicate the error. I saw there is a new version of the module: 16.0.0, I just updated my code to it, but this error still persists. |
Hi, Yesterday busy day at work and I didn't have time to replicate the problem. Anyway, I just saw a new Terraform version, I will check with other clusters that I still have with Terraform 0.14.11 to see if I can replicate it, but probably I need to update other things in that code to make it Terraform 0.15 friendly. Update: Doing a Terraform plan to other cluster using EKS Terraform module version |
@davidgp1701 That changelog line caught my eye as well; I can confirm that I am getting clean plans now from 14.x to 15.4. |
Can we close this ? Since it sounds like it's fixed in terraform core ? |
I didn't test it with the provided combination but given other have succeeded I can close π |
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. |
Description
Hello π
I faced this error when upgrading to v15.1.0
Versions
terraform-aws-modules/eks/aws
Reproduction
Steps to reproduce the behavior:
to fix the "gp3" errormentioned in #1205
terraform plan
to see the upgrade planCode Snippet to Reproduce
Expected behavior
The plan should execute successfully.
Actual behavior
The error above is reported.
Tried inspecting the module with
TF_LOG=DEBUG
but didn't find any useful hints.Additional context
Faced during an upgrade of the module from the latest 13.x version.
Same error with Terraform 0.15.0.
The text was updated successfully, but these errors were encountered: