| Name | Version |
|---|---|
| archive | n/a |
| aws | n/a |
| 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 |
| 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 |
| 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 |
opsZero provides software and consulting for Cloud + AI. With our decade plus of experience scaling some of the world’s most innovative companies we have developed deep expertise in Kubernetes, DevOps, FinOps, and Compliance.
Our software and consulting solutions enable organizations to:
- migrate workloads to the Cloud
- setup compliance frameworks including SOC2, HIPAA, PCI-DSS, ITAR, FedRamp, CMMC, and more.
- FinOps solutions to reduce the cost of running Cloud workloads
- Kubernetes optimized for web scale and AI workloads
- finding underutilized Cloud resources
- setting up custom AI training and delivery
- building data integrations and scrapers
- modernizing onto modern ARM based processors
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.




