/terraform-aws-log-exporter

This module creates a lambda function that exports log groups on the AWS account and region deployed.

Primary LanguageHCLApache License 2.0Apache-2.0

terraform-aws-log-exporter

Lint Status LICENSE

This module creates a lambda function that exports log groups on the AWS account and region deployed(default every 4 hours).

It will only export each log group if it has the tag ExportToS3=true, if the last export was more than 24 hours ago it creates an export task to the S3_BUCKET defined saving the current timestamp in a SSM parameter.

This module creates:

  • A lambda function
  • A bucket to receive the logs
  • A Cloudwatch to export the logs

Requirements

Name Version
terraform >= 0.12.0

Providers

Name Version
archive n/a
aws n/a
random n/a

Inputs

Name Description Type Default Required
cloudwatch_logs_export_bucket Bucket to export logs string "" no

Outputs

No output.

Authors

Module managed by DNX Solutions.

License

Apache 2 Licensed. See LICENSE for full details.