https://github.com/launchbynttdata/tf-aws-module_primitive-cloudwatch_event_archive
https://github.com/launchbynttdata/tf-aws-module_primitive-cloudwatch_event_archive
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/launchbynttdata/tf-aws-module_primitive-cloudwatch_event_archive
- Owner: launchbynttdata
- License: apache-2.0
- Created: 2026-03-17T13:30:23.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-19T18:16:32.000Z (about 1 month ago)
- Last Synced: 2026-05-19T21:53:52.467Z (30 days ago)
- Language: Makefile
- Homepage: https://launch.nttdata.com
- Size: 107 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
- Notice: NOTICE
Awesome Lists containing this project
README
# TF AWS Module Primitive - CloudWatch Event Archive
[](https://opensource.org/licenses/Apache-2.0)
[](https://creativecommons.org/licenses/by-nc-nd/4.0/)
## Overview
This Terraform module creates an [AWS EventBridge (CloudWatch Events) event archive](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_archive) for long-term archival and replay of events from an event bus.
## Pre-Commit Hooks
[.pre-commit-config.yaml](.pre-commit-config.yaml) defines pre-commit hooks for Terraform, Go, and common linting. The `commitlint` hook enforces conventional commit format. The `detect-secrets-hook` prevents new secrets from being introduced. See [pre-commit](https://pre-commit.com/#install) for installation. Install the commit-msg hook manually:
```
pre-commit install --hook-type commit-msg
```
## Usage
See [examples/complete](examples/complete) for a full working example.
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | ~> 1.9 |
| [aws](#requirement\_aws) | ~> 5.0 |
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | 5.100.0 |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [aws_cloudwatch_event_archive.archive](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_archive) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [name](#input\_name) | Name of the EventBridge event archive. Must be unique per account and region. Maximum 48 characters. | `string` | n/a | yes |
| [event\_source\_arn](#input\_event\_source\_arn) | ARN of the event bus associated with the archive. Events from this bus are archived. | `string` | n/a | yes |
| [description](#input\_description) | Description for the archive. Maximum 512 characters. | `string` | `null` | no |
| [event\_pattern](#input\_event\_pattern) | Event pattern to filter events sent to the archive. JSON string. Archives all events if not specified. | `string` | `null` | no |
| [retention\_days](#input\_retention\_days) | Maximum number of days to retain events in the archive. Omit for indefinite retention. | `number` | `null` | no |
## Outputs
| Name | Description |
|------|-------------|
| [id](#output\_id) | The ID of the archive (same as the name). |
| [arn](#output\_arn) | The ARN of the archive. |
| [name](#output\_name) | The name of the archive. |
| [event\_source\_arn](#output\_event\_source\_arn) | The ARN of the event bus associated with the archive. |
| [description](#output\_description) | The description of the archive. |
| [event\_pattern](#output\_event\_pattern) | The event pattern used to filter events sent to the archive. |
| [retention\_days](#output\_retention\_days) | The number of days events are retained in the archive. |