AWS CLI Error when listing eks cluster as well as s3 bucket even though having administrator permission.

0

We are facing an issue with AWS CLI operations for EKS as An error occurred (AccessDeniedException) when calling the DescribeCluster operation: User: arn:aws:iam:: is not authorized to perform: eks:DescribeCluster on resource: arn:aws:eks:ap-south-1:cluster/Mycluster with an explicit deny

1 回答
0

Hello.

Since it says "with an explicit deny", aren't you setting a Deny statement in the IAM policy, or denying access in the bucket policy if it's S3?
https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_access-denied.html#access-denied-error-examples

Also, if you use "eks:DescribeCluster", you may be able to see a more detailed message from the CloudTrail event history.
https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html

profile picture
专家
已回答 1 个月前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则