S3 bucket policy to make it Public

You are currently viewing S3 bucket policy to make it Public
{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "AllowPublicRead",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::{bucket-name}/*"
        }
    ]
}

Sometimes we have to make an Amazon S3 bucket permission public, we want to store images over there which would be accessed from different places. In this process, you can easily make an Amazon S3 bucket public.

At first, create an S3 bucket and then add a bucket policy that makes this public.

Here is one video available on YouTube which tells how to make a bucket public.

Atiqur Rahman

I am MD. Atiqur Rahman graduated from BUET and is an AWS-certified solutions architect. I have successfully achieved 6 certifications from AWS including Cloud Practitioner, Solutions Architect, SysOps Administrator, and Developer Associate. I have more than 8 years of working experience as a DevOps engineer designing complex SAAS applications.

Leave a Reply