Using Bucket Policy to Allowing Public Access on Objects
To create a Bucket Policy for an S3 bucket, follow these steps:
- Login to your AWS account and navigate to the S3 console.
- Select the S3 bucket you want to apply the policy to.
- Click on the “Permissions” tab and select “Bucket Policy”.
- In the text editor, copy and paste the following bucket policy:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "" }, "Action": [ "s3:GetObject" ], "Resource": [ "arn:aws:s3:::/*" ] } ] }
- Replace
<bucket-name>
with the name of your bucket. - Click “Save” to apply the policy.