log-exporter

DNXLabs/log-exporter/aws

Terraform Module HCL AWS

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

Install
module "log-exporter" {
source = "DNXLabs/log-exporter/aws"
version = "1.4.0"
}
plain text: /constructs/tfmod-dnxlabs-log-exporter-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-log-exporter ![Lint Status](https://github.com/DNXLabs/terraform-aws-log-exporter/actions) ![LICENSE](https://github.com/DNXLabs/terraform-aws-log-exporter/blob/master/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 | | aws | >= 4.61.0 | | random | >= 3.4.0 | Providers | Name | Version | |------|------

Inputs (2)
NameTypeDescriptionDefault
cloudwatch_logs_export_bucketstringBucket to export logs""
runtimestringRuntime version of the lambda function"python3.10"
Resources (7)
aws_cloudwatch_event_ruleaws_cloudwatch_event_targetaws_iam_roleaws_iam_role_policyaws_lambda_functionaws_lambda_permissionrandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version1.4.0
Cloud AWS
★ Stars31
Forks27
Total downloads6.8k
Inputs2
Resources7
LicenseApache-2.0
NamespaceDNXLabs
Updated