-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
IAM Role issue #496
Comments
Hi @skuriyadi this error is documented here. As documented there, this is an issue in Terraform Core. If you remove the |
@askulkarni2 As this code is coming from the module, what are you usually doing to circumvent it here? As removing the dependency seems not really a solution. |
@askulkarni2 , I will continue using the older version for now, I guess the solution which is provided will beat the purpose of creating a complete automated infra setup. |
@skuriyadi can you share you current configuration? |
Hi @bryantbiggs I am using your module to create a EKS cluster with managed nodegroup and your addon module. Thank you! |
A bit unsatisfying, but thanks for your responses |
there has been some recent movement on this issue so hopefully improvements in Terraform core are coming soon hashicorp/terraform#30937 |
Hi Team, Did any improvements come from Terraform on this issuue |
HI @bryantbiggs , |
Hi @skuriyadi - you can track the progress in the linked issue above hashicorp/terraform#30937 |
This issue has been automatically marked as stale because it has been open 30 days |
This issue has been automatically marked as stale because it has been open 30 days |
This issue has been automatically marked as stale because it has been open 30 days |
I also had this issue. It turned up when I added a I worked out that if remove the It worked for me. Bit of a hack, but I moved forward at least. |
This issue has been automatically marked as stale because it has been open 30 days |
Please see #1319 This has been resolved in v19 of the |
Hi,
I am getting below error when using latest version of your module, please advise.
Error: Invalid for_each argument
│
│ on .terraform/modules/eks-cluster.aws_eks/main.tf line 250, in resource "aws_iam_role_policy_attachment" "this":
│ 250: for_each = local.create_iam_role ? toset(compact(distinct(concat([
│ 251: "${local.policy_arn_prefix}/AmazonEKSClusterPolicy",
│ 252: "${local.policy_arn_prefix}/AmazonEKSVPCResourceController",
│ 253: ], var.iam_role_additional_policies)))) : toset([])
│ ├────────────────
│ │ local.create_iam_role is true
│ │ local.policy_arn_prefix is a string, known only after apply
│ │ var.iam_role_additional_policies is empty list of string
│
│ The "for_each" value depends on resource attributes that cannot be determined until apply, so Terraform cannot predict how many instances will be created. To work around this, use the -target argument to first apply only the resources that the for_each depends on.
The text was updated successfully, but these errors were encountered: