← Back to list

AWS Hands-On | S3 Introduction | S3 Bucket Policy

📌 Notice

Minoltan Issack · 2025-05-31 03:07 · 5 claps · 2.5 min read
#s3-hands-on #s3-bucket-policies #s3-introduction #s3-bucket-security #s3-practical
Open on Medium ↗
Wiki topics: ☁️ · DevOps & Cloud

AWS Hands-On | S3 Introduction | S3 Bucket Policy

📌 Notice

This is a hands-on tutorial accompanying the blog post:

Pass the AWS Certified Solutions Architect Associate Certification SAA-C03-(Episode 10: S3 Introduction)

🔹 Focus: Practical implementation of Amazon S3. 🔹 For theoretical concepts and exam-style questions, please refer to the main blog post (link to parent blog).

This guide will walk you through making an S3 bucket object (e.g., image.jpg) publicly accessible via a URL by configuring bucket policies.

Step 1: Enable Public Access on the Bucket

  1. Go to the AWS S3 Console and select your bucket.
  2. Navigate to the Permissions tab.
  3. Under Block Public Access (bucket settings), click Edit.
  4. Uncheck “Block all public access” (Warning: Only do this if you intend to make objects public).
  5. Confirm by selecting “Yes, I understand the risks” and save.

Step 2: Create a Bucket Policy

  1. In the Permissions tab, scroll down to Bucket Policy and click Edit.
  2. Use the AWS Policy Generator (or manually write a policy).
  • Policy Type: S3 Bucket Policy
  • Principal: * (allows public access)
  • Action: s3:GetObject (allows reading objects)
  • Amazon Resource Name (ARN): arn:aws:s3:::your-bucket-name/*

Note: Replace your-bucket-name with your actual bucket name.

  • The /* ensures the policy applies to all objects inside.
  1. Click Add Statement, then Generate Policy.

  2. Copy the generated JSON policy.

Step 3: Apply the Bucket Policy

  1. Paste the policy into the Bucket Policy Editor.
  2. Remove any extra spaces or formatting errors.
  3. Click Save Changes.

Step 4: Verify Public Access

  1. Go to your bucket, select an object (e.g., image.jpg).
  2. Copy the Object URL (found under Object overview).
  3. Open the URL in a browser — the object should now be publicly accessible.

https://issack-demo-s3-v1.s3.ap-southeast-1.amazonaws.com/Control+Devices(Approved).jpg

  • Hope you enjoyed It..

To stay informed on the latest technical insights and tutorials, connect with me on Medium and LinkedIn. For professional inquiries or technical discussions, please contact me via email. I welcome the opportunity to engage with fellow professionals and address any questions you may have.


메타데이터
post_id
56ffa99e83f4
slug
aws-hands-on-s3-introduction-s3-bucket-policy-56ffa99e83f4
url
https://medium.com/@issackpaul95/aws-hands-on-s3-introduction-s3-bucket-policy-56ffa99e83f4
canonical_url
https://medium.com/@issackpaul95/aws-hands-on-s3-introduction-s3-bucket-policy-56ffa99e83f4
author_url
https://medium.com/@issackpaul95
status
ok
fetched_at
2026-07-16 13:15:27