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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Best Practices for Running  Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK cover image

Best Practices for Running Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK

This post discusses the process of migrating a growing WordPress eShop business to AWS using AWS CDK for an easily scalable, high availability architecture. The detailed structure encompasses several pillars: Compute, Storage, Database, Cache, CDN, DNS, Security, and Backup.

Read full post