Skill 4.1.5
Managing log storage lifecycles (for example, Amazon S3 lifecycles, CloudWatch log group retention)
Key Concepts
CloudWatch log groups default to never expire; set a retention period (1 day to 10 years) on each log group, and enforce it with automation or an AWS Config rule. The Infrequent Access log class lowers ingestion cost for logs that need fewer features.
For long-term retention, deliver logs to S3 (directly from services like ALB, CloudTrail and VPC Flow Logs, or with Firehose subscriptions or export tasks) and use S3 lifecycle rules to transition to Standard-IA, Glacier Instant/Flexible Retrieval or Deep Archive, and expire objects after the required period.