object-lifecycle-management

Configure S3-compatible storage lifecycle rules and retention policies via Terraform.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/marquesfelip/agents-and-skills --skill object-lifecycle-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: object-lifecycle-management
Source: https://github.com/marquesfelip/agents-and-skills/tree/main/skills/object-lifecycle-management
Command: npx skills add https://github.com/marquesfelip/agents-and-skills --skill object-lifecycle-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Designing and enforcing storage lifecycle policies to automatically purge, transition, or archive data in S3-compatible storage, reducing costs and ensuring data-retention compliance.

Core Features & Use Cases

  • Define retention by object category and automate transitions (e.g., expiring temp uploads, archiving exports, moving backups to cold storage)
  • Implement soft-delete patterns and tag-based lifecycle triggers to align with GDPR/LGPD right-to-erasure flows
  • Support IaC-driven deployments (Terraform) and observable lifecycle metrics for cost and compliance auditing

Quick Start

Configure a Terraform module to create a bucket lifecycle that expires tmp uploads after 1 day and archives older data after 90 days.

Frequently Asked Questions about object-lifecycle-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate S3 lifecycle rules using Terraform?

Automating S3 lifecycle rules with Terraform involves defining IaC-driven configurations that automatically transition objects to cold storage like Glacier or expire temporary uploads. This approach reduces storage costs and ensures retention compliance across development to production environments.

What is a soft-delete pattern for S3 object retention?

A soft-delete pattern for S3 object retention uses tag-based lifecycle triggers to mark objects for deletion rather than immediately purging them. This approach aligns with GDPR and LGPD right-to-erasure flows by ensuring data is archived or expired according to compliance requirements.

Can I configure different S3 retention policies for backups and exports?

Configuring different S3 retention policies for backups and exports is supported by defining object categories within your lifecycle rules. You can automatically expire temporary uploads after one day while moving older backups or exports to cold storage archives after ninety days.

Does this S3 lifecycle configuration work for SaaS tenant deletion flows?

S3 lifecycle configuration supports SaaS tenant deletion flows by applying soft-delete workflows and tag-based retention triggers to user uploads and compliance archives. This ensures data governance and right-to-erasure requirements are met across SaaS data stores.

What are the limitations of tag-based lifecycle triggers for S3 object governance?

Tag-based lifecycle triggers for S3 object governance require consistent tag application across objects to function correctly. If tags are missing or incorrectly applied, objects may bypass intended retention policies or fail to transition to cold storage or expire as expected.