-
-
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
IAM Role missing kms:ListGrants permission #1913
Comments
this looks like your KMS policy needs to add that permission - can you share your configuration |
Hi, Hm, but the IAM Role/Policy is created by the module (https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/main.tf#L207), right? Regards |
No, this is your KMS key policy - see the error message above |
Right, My KMS Key policy: There are something wrong? |
wow, this is not documented well at all by EKS. I was only able to find this https://systemweakness.com/iam-permissions-to-enable-secrets-encryption-on-aws-eks-fc2fbcad958b which looks just like the issue you are seeing so pushing up a PR now |
Hi @bryantbiggs Yes! I found the same. Ok, i will wait, thank you! Regards |
This issue has been resolved in version 18.8.0 🎉 |
Perfect, thank you so much!! |
For people dropping by stuck with module in v17 (because of v18 breaking change). Quick manual how-to fix: On your EKS console, open your your KMS key with (1), your cluster IAM role with (2). Add this inline policy to IAM role (2)
And that's fixed! This doesn't break the terraform, you can re-apply plan and the manual added policy will stay 👌 |
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
I noticed that we are getting a huge amount of CloudWatch alarms for AccessDenied, it seems there is a missing permission or perhaps a component is doing something it should not trying to perform kms:ListGrants.
Versions
Expected behavior
No more access denied errors
Actual behavior
Lot's of access denied errors
Additional context
The text was updated successfully, but these errors were encountered: