V
V
VaniLuksh2020-09-01 13:38:21
Amazon Web Services
VaniLuksh, 2020-09-01 13:38:21

How to configure IAM policy for S3 bucket?

When trying to upload a file to an S3 bucket via boto3, an error occurs:

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


in IAM, the AmazonS3FullAccess policy is attached to the user:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "s3:*",
            "Resource": "*"
        }
    ]
}


What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2020-09-01
@inoise

The fact is that it is not clear who is calling PutObject and whether these rights have been granted to this resource)

V
Vitaly Karasik, 2020-09-01
@vitaly_il1

Perhaps the S3 bucket policy or ACL prohibits writing.
I advise you to create a new bucket and try to put files there. If it works out - repair it in your bucket, if not - I was wrong.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question