DEV Community

Cover image for S3 Lifecycle
Olawale Adepoju for AWS Community Builders

Posted on • Originally published at dev.classmethod.jp

3

S3 Lifecycle

Lifecycle of S3

In the previous post, I discussed the S3 storage classes. Objects can be transitioned between these storage classes depending on how critical the needs are.

Image description

For infrequently accessed objects, they can be moved to STANDARD_IA, and for archive objects that are not needed in real-time, GLACIER OR DEEP_ARCHIVE.

Transitioning of objects can be automated using a lifecycle configuration

S3 Lifecycle Rules

Transition actions: It defines when objects are transitioned to another storage class.

  • Move to Glacier for archiving after 3 months

Expiration actions: Configure objects to expire (delete) after some time

  • Log files can be set to delete after a 90 days
  • Can be used to delete old versions of files (if versioning is enabled)
  • Can be used to delete incomplete multi-part uploads

Image description

Image description

Note: The value of days transitioning to intelligent_tiering must be at least 30 more than the value of the previous Standard_IA.

The value of days transitioning to Glacier Deep Archive must be at least 30 more than the value of the previous Glacier Instant Retrieval.

Image description

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Create a simple OTP system with AWS Serverless cover image

Create a simple OTP system with AWS Serverless

Implement a One Time Password (OTP) system with AWS Serverless services including Lambda, API Gateway, DynamoDB, Simple Email Service (SES), and Amplify Web Hosting using VueJS for the frontend.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay