Skip to content

Export a CloudWatch log group to S3 on a recurring schedule using Lambda and CloudWatch Events

License

Notifications You must be signed in to change notification settings

wetransform-os/terraform-aws-cloudwatch-logs-exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudWatch Export

Export logs from CloudWatch to S3

NOTE

This module requires curl be available on the machine running terraform so that it can download the lambda zip.

Example

module "cloudwatch-logs-exporter" {
  source           = "gadgetry-io/cloudwatch-logs-exporter/aws"
  version          = "0.0.4"
  
  name             = "vpc-flow-logs"
  log_group        = "/prd/vpc_flow_logs"
  s3_bucket        = "my-s3-bucket"
  s3_prefix        = "cloudwatch/prd/vpc_flow_logs"
}

About

Export a CloudWatch log group to S3 on a recurring schedule using Lambda and CloudWatch Events

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%