๐ Day 11 ๐ Amazon S3 | Simple & Secure Cloud Storage
In AWS DevOps projects, storing data safely and accessing it anytime is very important.
AWS provides Amazon S3 โ a highly scalable object storage service used worldwide.
S3 helps us:
โ Store any type of data (images, logs, code, backups, videos)
โ Access data anytime from anywhere
โ Host static websites like portfolios & landing pages
โ Store CI/CD build artifacts
โ Maintain backups & version control
โ Reduce cost using storage classes & lifecycle rules
๐ S3 = Storage + Security + Scalability + Cost Optimization
It protects data with encryption, IAM policies & multi-AZ durability (11 9โs ๐คฏ),
making it a must-know service for DevOps engineers! ๐ฅ
๐ How to Create an S3 Bucket
1๏ธโฃ Login to AWS Console
2๏ธโฃ Go to S3 service
3๏ธโฃ Click Create bucket
4๏ธโฃ Enter a unique bucket name (globally unique)
5๏ธโฃ Choose Region (ex: ap-south-1)
6๏ธโฃ Keep Block Public Access ON by default
7๏ธโฃ Click Create Bucket
โ Bucket created successfully ๐
๐ค How to Upload Files to S3
1๏ธโฃ Open your bucket
2๏ธโฃ Click Upload
3๏ธโฃ Add files (Images, Zip, PDFs, etc.)
4๏ธโฃ Click Upload
โ Files stored in S3 ๐๏ธ
๐ How to Connect & Access Files from S3
| Method | Usage |
|---|---|
| URL / Public Access | Share files or host static websites |
| IAM Users / Roles | Secure internal access |
| AWS CLI | Upload / Download using terminal |
| SDKs (Python, Java, Node.js) | Application-level integration |
| CloudFront | Faster access via CDN |
๐ Access File using URL
- Go to your object โ Copy Object URL
- If file is Public โ URL works
- If Private โ Access Denied โ
๐ To make file public (only when required!)
Objects โ Permissions โ Enable Public Read Access
๐ป How to Connect S3 Using AWS CLI
๐ First configure CLI:
aws configure
๐ Upload File:
aws s3 cp file.txt s3://mybucket/
๐ Download File:
aws s3 cp s3://mybucket/file.txt .
๐ List Buckets:
aws s3 ls
๐ Host a Static Website on S3
1๏ธโฃ Upload index.html
2๏ธโฃ Go to Properties โ Static website hosting โ Enable
3๏ธโฃ Select index.html as the default file
4๏ธโฃ Make index.html public
5๏ธโฃ Copy Website Endpoint URL
6๏ธโฃ Open in browser โ ๐ Website is Live
(Optional) Use CloudFront for HTTPS + global performance
๐ Lifecycle Policies (Cost Optimization)
Go to: Management โ Lifecycle rules
Example Rules:
- After 30 days โ Move to Standard-IA
- After 90 days โ Move to Glacier
Thank You
๐ Connect With Me
| ๐ Platform | ๐ Link |
|---|---|
| ๐ GitHub | https://lnkd.in/d2F3JPa3 |
| โ๏ธ Dev.to Blog | https://lnkd.in/dNtgqAME |
| ๐ผ LinkedIn | https://lnkd.in/d3NctxFT |
| ๐ Resume (Google Drive) | https://lnkd.in/dHDNsd_D |

Top comments (0)