π 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)