Why is my terminal returning this s3 error?

前端 未结 2 1656
生来不讨喜
生来不讨喜 2020-12-19 11:22

Here\'s the error I keep receiving:

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

I\'ve trip

2条回答
  •  难免孤独
    2020-12-19 12:24

    I had a very similar problem. My user had S3FullPermissions and I could create buckets and list all of them:

    aws s3 mb s3://my-bucket
    make_bucket: s3://my-bucket/
    
    aws s3 ls
    2017-03-24 12:30:34 my-bucket
    

    But when I tried to run:

    aws s3 ls s3://my-bucket
    A client error (AccessDenied) occurred when calling the ListObjects operation: Access Denied
    

    The error itself was related with the awscli version I was using and not with any misconfiguration of my buckets/users/policies. To solve it, I removed the awscli package installed from my distro repository and installed it using pip:

    # apt-get remove awscli
    # pip install awscli
    

    Hope this help someone in a similar situation, I have wasted several hours trying to guess what was going on here.

提交回复
热议问题