AccessDenied for ListObjects for S3 bucket when permissions are s3:*

前端 未结 13 1052
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-29 22:02

I am getting:

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

When I try to get folder from

13条回答
  •  南笙
    南笙 (楼主)
    2021-01-29 22:12

    I was unable to access to S3 because

    • first I configured key access on the instance (it was impossible to attach role after the launch then)
    • forgot about it for a few months
    • attached role to instance
    • tried to access. The configured key had higher priority than role, and access was denied because the user wasn't granted with necessary S3 permissions.

    Solution: rm -rf .aws/credentials, then aws uses role.

提交回复
热议问题