🚀Launch Week 08, April 14th - 18th, 2025🚀
Mods
AWS

Policy: AWS > Logs > Log Group > Retention > Period

Set the retention period for AWS CloudWatch Log Groups.

AWS CloudWatch Log Groups can be configured with a retention period ranging from 1 day to 10 years. Setting an appropriate retention period ensures compliance with data retention requirements while optimizing storage costs.

Targets

This policy targets the following resource types:

Primary Policy

This policy is used with the following primary policy:

Controls

Setting this policy configures this control:

Policy Specification

Schema Type
string
Default
Never expire
Valid Values [YAML]
  • Never expire
    
  • 1 day
    
  • 3 days
    
  • 5 days
    
  • 1 week
    
  • 2 weeks
    
  • 1 month
    
  • 2 months
    
  • 3 months
    
  • 4 months
    
  • 5 months
    
  • 6 months
    
  • 12 months
    
  • 13 months
    
  • 18 months
    
  • 2 years
    
  • 3 years
    
  • 5 years
    
  • 6 years
    
  • 7 years
    
  • 8 years
    
  • 9 years
    
  • 10 years
    
Examples [YAML]
  • 12 months
    

Category

In Your Workspace

Developers