AWS S3 Bucket Policy Generator
Sharafat Hussain
Cloud DevOps Engineer | Cloud Architecture | CI/CD Automation | Kubernetes | Docker | Infrastructure as Code (IaC) | AWS | Alicloud
All credit goes to Mam Gulnaz Mushtaq
To enable public access to the content in a bucket, go to the Permissions tab.
scroll down and in Block public access (bucket settings) click on Edit and uncheck Block all public access and click on Save changes then put confirm and OK.
How to edit bucket policy:
- Now scroll down and in Bucket policy click on Edit. Copy Bucket ARN and click on Policy generator. A new browser tab will open. This is the AWS Policy Generator.
- You can use policy generator and set the permissions in Actions (in my case i have provide the S3 read only permissions). And in ARN select the bucket arn and put "/*"' at the end of arn if you want to apply the rules on all objects in bucket. See the below image
- At the end click on Add statement and then click on Generate policy
A Policy JSON Document will open. Copy all the content of the document and click on Close
Now come to the Edit bucket policy window and in the area Policy, paste the
content you have copied, scroll down and click on Save changes
- Your bucket’s objects are live now Now click on any bucket object and in the Properties tab, in the section Object overview copy Object URL and open in any browser to verify
Microsoft Certified Trainer Community Lead for Pakistan | MVP | Enrique Lima Award winner| Microsoft Learning Expert | Consultant | Corporate Trainer | IT Expert | Technical Writer | Speaker
11 个月That's awesome Sharafat