- Newest
- Most votes
- Most comments
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
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
Relevant content
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 7 days ago
please check this https://repost.aws/questions/QUqJvEqUeDQVqVp_8N0KfUbA/include-s-3-list-objects-v-2-as-action-in-bucket-policy