AWS CLI S3 A client error (403) occurred when calling the HeadObject operation: Forbidden

前端 未结 21 2011

I\'m trying to setup a Amazon Linux AMI(ami-f0091d91) and have a script that runs a copy command to copy from a S3 bucket.

 aws --debug s3 cp s3://aws-codede         


        
相关标签:
21条回答
  • 2020-12-03 04:57

    I was getting this error message due to my EC2 instance's clock being out of sync.

    I was able to fix on Ubuntu using this:

    sudo ntpdate ntp.ubuntu.com
    sudo apt-get install ntp
    
    0 讨论(0)
  • 2020-12-03 04:58

    I've had this issue, adding --recursive to the command will help.

    At this point it doesn't quite make sense as you (like me) are only trying to copy a single file down, but it does the trick!

    0 讨论(0)
  • 2020-12-03 05:00

    In my case, i got this error trying to get an object on an S3 bucket folder. But in that folder my object was not here (i put the wrong folder), so S3 send this message. Hope it could help you too.

    0 讨论(0)
提交回复
热议问题