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

前端 未结 21 2061

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

    When it comes to cross-account S3 access

    An IAM user policy will not over-ride the policy defined for the bucket in the foreign account.

    s3:GetObject must be allowed for accountA/user as well as on the accountB/bucket

提交回复
热议问题