DEV Community

Cover image for ๐Ÿ“… Day 11 ๐Ÿš€ Amazon S3 | Simple & Secure Cloud Storage
Sudarshan Yadav
Sudarshan Yadav

Posted on

๐Ÿ“… Day 11 ๐Ÿš€ Amazon S3 | Simple & Secure Cloud Storage

๐Ÿ“… 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
Enter fullscreen mode Exit fullscreen mode

๐Ÿ‘‰ Upload File:

aws s3 cp file.txt s3://mybucket/
Enter fullscreen mode Exit fullscreen mode

๐Ÿ‘‰ Download File:

aws s3 cp s3://mybucket/file.txt .
Enter fullscreen mode Exit fullscreen mode

๐Ÿ‘‰ List Buckets:

aws s3 ls
Enter fullscreen mode Exit fullscreen mode

๐ŸŒ 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

๐Ÿ”– Hashtags

AWS #DevOps #CloudComputing #AWSLearning #EBS #VolumeMounting #DataPersistence #LearningJourney #CareerGrowth #DevOpsEngineer #AWSCommunity

Top comments (0)