An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied

0

Just done creating a cluster and connecting to it... Now when I try to list the s3 bucket via: aws s3 ls bucketname, It give me ERROR message like: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied. I was wondering if someone has the same issue and how I should resolve it. I am a IAM user, not the account manager.

2개 답변
0

Hello,

The error suggests that your IAM identity (your IAM user here) does not have the permission to List the bucket (s3:ListBucket action) in question.

Please refer this Knowledge Article on how to provide this permission to your IAM identity - https://aws.amazon.com/premiumsupport/knowledge-center/s3-access-denied-listobjects-sync/

In case your IAM user and S3 bucket belong to 2 different AWS accounts, make sure that in addition to the above, your bucket policy also gives permission to your IAM user to perform ListObjectsV2 operation.

Thanks

AWS
지원 엔지니어
답변함 2년 전
profile picture
전문가
검토됨 한 달 전
0

If you have CloudTrails enabled for that user, you can use IAM Access Analyzer under that user to find out what policies you need to add. Check out this documentation. https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-policy-generation.html

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠