🗂️ Amazon S3 – Simple Storage Service: A Beginner’s Guide


📌 What Is Amazon S3?
Amazon S3 (Simple Storage Service) is a cloud-based object storage service offered by AWS. It allows you to store and retrieve any amount of data, from anywhere on the internet. Whether you’re backing up files, hosting a static website, or storing app data, S3 is the go-to tool.
🚀 Common Use Cases
Hosting static websites (HTML, CSS, JS)
Storing images, videos, and documents
Saving log files from applications
Performing data backups
Working as an origin for CDNs (e.g., CloudFront)
🧠 Beginner Tip
Use S3 to host a static HTML website for free (or almost free) — no servers, no VMs, just simple file hosting.
🛠️ Step-by-Step Guide to Using Amazon S3
✅ Step 1: Open the S3 Console
Visit AWS S3 Console
Click “Create bucket”
✅ Step 2: Create a Bucket
Name your bucket (e.g.,
s3-devopstackzone
)Choose a region
Uncheck "Block all public access" if you want to host a website
Confirm and click “Create bucket”
✅ Step 3: Upload Files
Open your bucket → Click Upload
Add HTML/CSS files, images, or videos
Click “Upload” to finish
✅ Step 4: Make Files Public
To allow public access:
Select the file(s)
Go to Actions → Make public
OR use a bucket policy (see Step 6)
✅ Step 5: Enable Static Website Hosting
Go to Bucket > Properties
Scroll down to Static website hosting
Enable it, and set:
Index document:
index.html
Error document:
error.html
(optional)
Save changes
You’ll receive a website endpoint URL like:
http://s3-devopstackzone.s3-website-us-east-1.amazonaws.com
✅ Step 6: Add a Bucket Policy for Public Access
Go to Permissions > Bucket Policy and add:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::s3-devopstackzone/*"
}
]
}
📌 Replace "s3-devopstackzone"
with your actual bucket name.
✅ Step 7: Access Your Website or Files
Static site: Use the website URL from step 5
Public file:
https://s3-devopstackzone.s3.amazonaws.com/image.png
⚙️ Optional: Use AWS CLI for Quick Uploads
aws s3 mb s3://my-bucket-name
aws s3 cp index.html s3://my-bucket-name/
aws s3 sync ./static-site/ s3://my-bucket-name/
📚 Summary
Feature | Description |
Object Storage | Store files, not databases |
Bucket | Container for your objects (files) |
Public Access | Controlled via permissions or policies |
Static Hosting | Host HTML/CSS/JS sites without a server |
Pricing | Pay only for what you store or transfer |
🏁 Final Thoughts
Amazon S3 is powerful yet simple for beginners. Whether you’re testing a static site or backing up images, this tool scales from personal use to enterprise-grade projects.
Subscribe to my newsletter
Read articles from KubeCraftsman directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
