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

前端 未结 21 2069

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:54

    I was getting a 403 on HEAD requests while the GET requests were working. It turned out to be the CORS config in s3 permissions. I had to add HEAD

    
    
    
        *
        HEAD
        PUT
        POST
        GET
        *
    
    
    

提交回复
热议问题