Skip to content

opszero/terraform-aws-cloudwatch-to-s3-archiver

Repository files navigation

Providers

Name Version
archive n/a
aws n/a

Inputs

Name Description Type Default Required
archive_s3_bucket S3 bucket name for archiving CloudWatch logs string "log-group-to-s3-archiver" no
enable_event_rule Enable or disable CloudWatch Event Rule for Lambda bool true no
enable_lambda Enable or disable Lambda function creation bool true no
enable_s3 Enable or disable S3 bucket creation bool true no
enabled Globally enable or disable the entire module bool true no
event_rule_name Name of the CloudWatch event rule string "log_archiver_schedule" no
lambda_function_name Name of the Lambda function string "cloudwatch_log_archiver" no
lambda_memory_size Memory size for Lambda function number 256 no
lambda_policy_name IAM Policy name for Lambda function string "log_archiver_policy" no
lambda_role_name IAM Role name for Lambda function string "log_archiver_role" no
lambda_runtime Runtime for the Lambda function string "python3.13" no
lambda_timeout Timeout for Lambda function number 900 no
schedule_expression Schedule expression for CloudWatch event rule string "rate(1 day)" no

Resources

Name Type
aws_cloudwatch_event_rule.schedule resource
aws_cloudwatch_event_target.trigger_lambda resource
aws_iam_policy.lambda_policy resource
aws_iam_role.lambda_role resource
aws_iam_role_policy_attachment.lambda_attach resource
aws_lambda_function.log_archiver resource
aws_lambda_permission.allow_cloudwatch resource
aws_s3_bucket.log_archive resource
aws_s3_bucket_policy.log_archive_policy resource
aws_s3_bucket_public_access_block.log_archive resource
archive_file.function data source
aws_caller_identity.current data source
aws_region.current data source

Outputs

Name Description
cloudwatch_event_rule_arn The ARN of the CloudWatch Event Rule
cloudwatch_event_rule_name The name of the CloudWatch Event Rule
iam_policy_arn The ARN of the IAM policy for Lambda
iam_role_name The name of the IAM role assigned to Lambda
lambda_function_arn The ARN of the Lambda function
lambda_function_name The name of the Lambda function
s3_bucket_arn The ARN of the log archive S3 bucket
s3_bucket_name The name of the log archive S3 bucket

🚀 Built by opsZero!

Since 2016 opsZero has been providing Kubernetes expertise to companies of all sizes on any Cloud. With a focus on AI and Compliance we can say we seen it all whether SOC2, HIPAA, PCI-DSS, ITAR, FedRAMP, CMMC we have you and your customers covered.

We provide support to organizations in the following ways:

We do this with a high-touch support model where you:

  • Get access to us on Slack, Microsoft Teams or Email
  • Get 24/7 coverage of your infrastructure
  • Get an accelerated migration to Kubernetes

Please schedule a call if you need support.



About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •