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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EKS] [question]: Inconsistent ARN for EKS cluster resources? #1172
Comments
Currently, the IAM ARN structure for eke add-on operations are inconsistent with the other EKS cluster resource. Customers need to use the following ARN structure for add-on operations:
The fix will be rolled out in 2-3 weeks, after that, customers will be able to use the ARN structure that is same with the other EKS operations. |
@jasonliang228 has this rolled out? I just ran into this issue. |
@jasonliang228, same issue. Has it been fixed yet? Thanks. |
Apologies for the experience here. We are still working behind the scenes on making add-ons ARNs consistent with other EKS resources. Can't share a timeline in this forum, but it's a high priority item, and I will update this issue as soon as the fix is rolled out. |
EKS add-ons ARNs are now consistent with ARNs for other EKS resources. You can view all resource types defined by EKS here. |
Community Note
Tell us about your request
I was attaching a policy to a role that manages a cluster. I've attached following policy as usual:
But I got following error on the console when I switched to the role:
I had to check it twice. A plural, '/' prefixed '/clusters', not a singular, non-prefixed 'cluster'. It is inconsistent with existing resource types.
(existing resource types: https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonelasticcontainerserviceforkubernetes.html also, new APIs are not listed on there)
I could add them to the list. but... why inconsistent plural?
Which service(s) is this request for?
This could be EKS.
Are you currently working around this issue?
I'm using following statements
edit I found more inconsistencies.
I thought it is kind of understandable that
eks:DescribeAddonVersions
perform onarn:aws:eks:<region>:<account>:/addons/supported-versions
since the API is not bound to a specific cluster, and also the endpoint isGET /addons/supported-versions
. I thought this is the new pattern for ARN. RESTful URI = ARN. Okay. It makes sense foreks:ListAddons
too. It performs onarn:aws:eks:<region>:<account>:/clusters/<cluster-name>/addons
and its endpoint isGET /clusters/<cluster-name>/addons
.But my mental model broke when I met
eks:CreateAddon
. It performs onarn:aws:eks:<region>:<account>:/createaddon
. Its endpoint isPOST /clusters/<name>/addons
. WHAT? I wonder whateks:DeleteAddon
andeks:UpdateAddon
performs on.edit2
eks:UpdateAddon
performs on on/updateaddon
, andeks:DeleteAddon
performs on/clusters/<name>/addons/<addon-name>
The text was updated successfully, but these errors were encountered: