Keyboard Shortcuts N Next post
P Previous post
S Save / unsave
R Read aloud
T Toggle theme
/ Focus search
Esc Close panels
🔥
Ready to read...
AWS Cloud Computing Cloud Computing: From Zero to Production Module 4 — Storage & Databases S3

S3 Advanced Features — Versioning, Lifecycle, and CORS

Reviewed & accurate
AI Summary

What You Will Learn

Intermediate

  • S3 versioning for data protection
  • Lifecycle policies for cost optimization
  • CORS for web access
Versioning protects you
Enable versioning on important buckets. If someone deletes a file, you can restore the previous version. Essential for production data.
Terminalbash
# Enable versioning
aws s3api put-bucket-versioning \
  --bucket my-bucket \
  --versioning-configuration Status=Enabled

# List all versions
aws s3api list-object-versions --bucket my-bucket

Lifecycle Policies

Automatically move objects to cheaper storage:

AfterMove toCost savings
30 daysStandard-IA~40%
90 daysGlacier~80%
365 daysGlacier Deep Archive~95%

Practical Exercise

Enable versioning on a bucket
Upload a file, then upload a new version
List versions: aws s3api list-object-versions
Set a lifecycle rule to move objects to IA after 30 days

Key Takeaways

  • Versioning: keep all versions of an object — restore deleted files.
  • Lifecycle: auto-move to cheaper storage classes.
  • CORS: allow web browsers to access S3 directly.
  • Always enable versioning on production buckets.
Previously: Module 3 covered compute.
Today: You learned: Versioning, lifecycle rules, and CORS in S3.
Next: Lesson 25 covers EBS.
Test Your Knowledge
How did you find this?

Comments

Join the discussion! Sign in with your Google or Blogger account, or comment as Anonymous - no account needed. For quick questions, also reach me on Telegram @cytestch.

Comments