Skip to content

giftomatic/terraform-aws-lambda-edge-loggroups-retention-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lambda Edge Loggroups Retention Checker

As https://renaghan.com/posts/lambda-cloudwatch-log-retain-manager/ wrote:

it is very common to have services, applications, and worldwide CloudFront Edge Locations (especially Lambda@Edge) creating CloudWatch Log Groups in regions across the world. By default new CloudWatch Log Groups have retention set to Never, which is never what I want.

So this is a terraform module that wraps the suggested python script to set the retention policy of all loggroups to a specified value.

Usage

module "loggroups_retention" {
  source         = "github.com/giftomatic/terraform-aws-lambda-edge-loggroups-retention-checker"
  name           = "loggroups-retention-checker"
  retention_days = 30
}

Alternatives

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published