With just a few selects in the S3 management console, you can apply S3 Block Public Access to any bucket in your account – both existing buckets and any buckets any new ones created in the future – while ensuring that there is no public access to any objects. S3 Block Public Access settings replace the S3 permission for public access, making it easy for account administrators to set up centralized controls to prevent changes in security configurations, no matter how the added object or how to create a storage area.
Access to S3
Select Permissions
In the Block public access (bucket settings) section
Make edits
aws s3api put-object --key text01 --body textfile --profile user1 --bucket ${bucket}
The request succeeds because default for an ACL object is private.
aws s3api put-object --key text01 --body textfile --acl public-read --profile user1 --bucket ${bucket}
The request failed because group policy restricts the ACL from being read publicly.
Perform access to S3
In the exchange bucket
Make edits