Skip to content
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 value for input "iam_role_additional_policies" #2136

Closed
tanvp112 opened this issue Jul 3, 2022 · 4 comments · Fixed by #2143
Closed

Invalid value for input "iam_role_additional_policies" #2136

tanvp112 opened this issue Jul 3, 2022 · 4 comments · Fixed by #2143
Assignees

Comments

@tanvp112
Copy link

tanvp112 commented Jul 3, 2022

Hi,

The fargate_profile example has broken with release 18.26.2; the variable iam_role_additional_policies was declared as list of strings, but the fargate module wants to assign map to it.

 Error: Invalid value for input variable
│
│   on ..\..\node_groups.tf line 221, in module "fargate_profile":
│  221:   iam_role_additional_policies  = try(each.value.iam_role_additional_policies, var.fargate_profile_defaults.iam_role_additional_policies, {})
│
│ The given value is not suitable for
│ module.eks.module.fargate_profile["secondary"].var.iam_role_additional_policies
│ declared at ..\..\modules\fargate-profile\variables.tf:71,1-40: list of
│ string required.
╵
╷
│ Error: Invalid value for input variable
│
│   on ..\..\node_groups.tf line 221, in module "fargate_profile":
│  221:   iam_role_additional_policies  = try(each.value.iam_role_additional_policies, var.fargate_profile_defaults.iam_role_additional_policies, {})
│
│ The given value is not suitable for
│ module.eks.module.fargate_profile["default"].var.iam_role_additional_policies
│ declared at ..\..\modules\fargate-profile\variables.tf:71,1-40: list of
│ string required.
@kuboraam
Copy link

kuboraam commented Jul 3, 2022

+1. was just about to open an issue for the same. Glad I found this thread first. Works fine in 18.26.1.

@tehseensajjad
Copy link

tehseensajjad commented Jul 4, 2022

+1
Changing line 221 in /.terraform/modules//cluster.eks/node_groups.tf to the following removes the error

  iam_role_additional_policies  = try(each.value.iam_role_additional_policies, var.fargate_profile_defaults.iam_role_additional_policies, [])

@antonbabenko
Copy link
Member

This issue has been resolved in version 18.26.3 🎉

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants