Getting Access Denied when calling the PutObject operation with bucket-level permission

前端 未结 14 1356
醉话见心
醉话见心 2020-12-12 13:37

I followed the example on http://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_examples.html#iam-policy-example-s3 for how to grant a user access to just one buck

14条回答
  •  生来不讨喜
    2020-12-12 13:51

    I was having the same error message for a mistake I made: Make sure you use a correct s3 uri such as: s3://my-bucket-name/

    (If my-bucket-name is at the root of your aws s3 obviously)

    I insist on that because when copy pasting the s3 bucket from your browser you get something like https://s3.console.aws.amazon.com/s3/buckets/my-bucket-name/?region=my-aws-regiontab=overview

    Thus I made the mistake to use s3://buckets/my-bucket-name which raises:

    An error occurred (AccessDenied) when calling the PutObject operation: Access Denied

提交回复
热议问题