Skip to content

AccessDenied: public access control lists (ACLs) are blocked by the BlockPublicAcls block public access setting.

0

I want to upload images and videos to my S3 Bucket named project41 in AWS S3 Bucket

(NOBRIDGE) LOG [AccessDenied: public access control lists (ACLs) are blocked by the BlockPublicAcls block public access setting.] (NOBRIDGE) LOG [AccessDenied: Access Denied]

Can you help me?

asked 2 years ago578 views

3 Answers
0

Hello.

Is it possible to upload to S3 from the management console?
What method are you currently trying to upload?
https://docs.aws.amazon.com/AmazonS3/latest/userguide/upload-objects.html

Based on the content of the error, I think you can upload by disabling the public block access settings at the account level and bucket level by following the steps in the document below, but disabling these is not recommended.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/configuring-block-public-access-account.html
https://docs.aws.amazon.com/AmazonS3/latest/userguide/configuring-block-public-access-bucket.html

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

0

Bucket policy { "Version": "2012-10-17", "Statement": [ { "Sid": "Statement1", "Effect": "Allow", "Principal": "", "Action": "s3:", "Resource": [ "arn:aws:s3:::41-taka-tak-app", "arn:aws:s3:::41-taka-tak-app/*" ] } ] } Is this correct or wrong?

[AccessDenied: public access control lists (ACLs) are blocked by the BlockPublicAcls block public access setting.] I want to upload photos and videos to my S3 Bucket named project41 in AWS S3 Bucket. But now I have a problem when I upload the file, I get the following message:

(NOBRIDGE) LOG [AccessDenied: public access control lists (ACLs) are blocked by the BlockPublicAcls block public access setting.] (NOBRIDGE) LOG [AccessDenied: Access Denied]

answered 2 years ago

0

The bucket policy is set to allow access to S3 for all users.
The configuration itself works, but it's not very secure.

I think the file upload itself will be successful if you disable all public block access settings described in the document below.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/configuring-block-public-access-bucket.html https://docs.aws.amazon.com/AmazonS3/latest/userguide/configuring-block-public-access-account.html

EXPERT

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.