Answer the question
In order to leave comments, you need to log in
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
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "*"
}
]
}
Answer the question
In order to leave comments, you need to log in
The fact is that it is not clear who is calling PutObject and whether these rights have been granted to this resource)
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 questionAsk a Question
731 491 924 answers to any question