-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix: Karpenter node IAM role policies variable should be a map of strings, not list #2771
fix: Karpenter node IAM role policies variable should be a map of strings, not list #2771
Conversation
### [19.17.2](v19.17.1...v19.17.2) (2023-10-10) ### Bug Fixes * Karpenter node IAM role policies variable should be a map of strings, not list ([#2771](#2771)) ([f4766e5](f4766e5))
This PR is included in version 19.17.2 🎉 |
Was not that a breaking change? |
No - are you seeing an issue? |
I had a code which was passing this old style as a list and it's breaking now.
Module code was
Not a big deal, but unexpected |
Just wanted to hop on this this, its not a huge deal but watching a number of workspaces suddenly have issue leads me to feel that this is not fix but a potentially breaking change for those that are automatically pulling in patch levels. |
We also found this to be a breaking change. We have two workspaces that suddenly began to fail with this change. |
my apologies for the disruption, that was not intended. I am somewhat shocked the prior variable type didn't raise issues before because the usage is written to accept a map, not a list terraform-aws-eks/modules/karpenter/main.tf Line 355 in 51cc6be
I guess HCL must silently convert the list index to the |
@bryantbiggs I asked the same "how did this ever work question", basically k becomes |
If you had already old format variable and just changing it to be a map, beware. Unless you use |
I won't upgrade yet - but what is the recommended change to handle this gracefully? As others have mentioned I have this in my TF.
Was the intention just to have you swap it to |
You would change that to: iam_role_additional_policies = {
AmazonSSMManagedInstanceCore = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
} Note: the key portion doesn't really matter so you can name the key anything you like, it just has to be unique within the map |
* Karpenter node IAM role policies variable should be a map of strings, not list ([terraform-aws-modules#2771](terraform-aws-modules#2771)) ([f4766e5](terraform-aws-modules@f4766e5)) (cherry picked from commit 51cc6be)
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Motivation and Context
Breaking Changes
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request