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

前端 未结 21 2067

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

    I had a lambda function doing the same, copy from bucket to bucket.

    The lambda had permissions to use the source bucket as trigger.

    Configuration tab

    But it also needs permissions to OPERATE with buckets.

    Permissions tab

    If s3 is not there, then you need to edit the Role used by the lambda and add it (see the s3FullAccess)

提交回复
热议问题