|
| 1 | +# eventbridge-event-bus |
| 2 | + |
| 3 | +This module creates following resources. |
| 4 | + |
| 5 | +- `aws_cloudwatch_event_bus` |
| 6 | +- `aws_cloudwatch_event_bus_policy` (optional) |
| 7 | +- `aws_cloudwatch_event_archive` (optional) |
| 8 | +- `aws_schemas_discoverer` (optional) |
| 9 | + |
| 10 | +<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
| 11 | +## Requirements |
| 12 | + |
| 13 | +| Name | Version | |
| 14 | +|------|---------| |
| 15 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 | |
| 16 | +| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.58 | |
| 17 | + |
| 18 | +## Providers |
| 19 | + |
| 20 | +| Name | Version | |
| 21 | +|------|---------| |
| 22 | +| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.59.0 | |
| 23 | + |
| 24 | +## Modules |
| 25 | + |
| 26 | +| Name | Source | Version | |
| 27 | +|------|--------|---------| |
| 28 | +| <a name="module_resource_group"></a> [resource\_group](#module\_resource\_group) | tedilabs/misc/aws//modules/resource-group | ~> 0.10.0 | |
| 29 | + |
| 30 | +## Resources |
| 31 | + |
| 32 | +| Name | Type | |
| 33 | +|------|------| |
| 34 | +| [aws_cloudwatch_event_archive.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_archive) | resource | |
| 35 | +| [aws_cloudwatch_event_bus.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_bus) | resource | |
| 36 | +| [aws_cloudwatch_event_bus_policy.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_bus_policy) | resource | |
| 37 | +| [aws_schemas_discoverer.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/schemas_discoverer) | resource | |
| 38 | + |
| 39 | +## Inputs |
| 40 | + |
| 41 | +| Name | Description | Type | Default | Required | |
| 42 | +|------|-------------|------|---------|:--------:| |
| 43 | +| <a name="input_name"></a> [name](#input\_name) | (Required) The name of the new event bus. The name of custom event bus can't contain the `/` character, but you can use the `/` character in partner event bus names. You can't use the name `default` for a custom event bus, as this name is already used for your account's default event bus. | `string` | n/a | yes | |
| 44 | +| <a name="input_archives"></a> [archives](#input\_archives) | (Required) The configuration to create archives for the event bus. Events are continuously saved in archives, and individual events will be deleted after the retention period. An archive will persist until you manually delete it. Each block of `archives` as defined below.<br> (Required) `name` - The name of the new event archive. Maximum of 48 characters consisting of numbers, lower/upper case letters, `.`, `-`, `_`. You can't change the name of the archive after it is created.<br> (Optional) `description` - The description of the new event archive.<br> (Optional) `retention_in_days` - The maximum number of days to retain events in the new event archive. `0` is equivalent to Indefinite. The maximum is 2 billion days. Defaults to `0`.<br> (Optional) `event_pattern` - An event pattern to use to filter events sent to the archive. | <pre>list(object({<br> name = string<br> description = optional(string, "Managed by Terraform.")<br> retention_in_days = optional(number, 0)<br> event_pattern = optional(string)<br> }))</pre> | `[]` | no | |
| 45 | +| <a name="input_module_tags_enabled"></a> [module\_tags\_enabled](#input\_module\_tags\_enabled) | (Optional) Whether to create AWS Resource Tags for the module informations. | `bool` | `true` | no | |
| 46 | +| <a name="input_policy"></a> [policy](#input\_policy) | (Optional) A valid policy JSON document. The resource-based policy defines who can access your event bus. By default, only the event bus owner can send events to the event bus. | `string` | `null` | no | |
| 47 | +| <a name="input_resource_group_description"></a> [resource\_group\_description](#input\_resource\_group\_description) | (Optional) The description of Resource Group. | `string` | `"Managed by Terraform."` | no | |
| 48 | +| <a name="input_resource_group_enabled"></a> [resource\_group\_enabled](#input\_resource\_group\_enabled) | (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. | `bool` | `true` | no | |
| 49 | +| <a name="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name) | (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with `AWS` or `aws`. | `string` | `""` | no | |
| 50 | +| <a name="input_schema_discovery"></a> [schema\_discovery](#input\_schema\_discovery) | (Required) The configuration for schema discovery of the event bus. Enabling event discovery on an event bus will generate EventBridge Schemas for events on that bus. This may incur a cost (the first five million ingested events in each month is free). `schema_discovery` as defined below.<br> (Optional) `enabled` - Whether to enable schema discovery. Defaults to `false`.<br> (Optional) `description` - The description of the schema discoverer. Maximum of 256 characters. | <pre>object({<br> enabled = optional(bool, false)<br> description = optional(string, "Managed by Terraform.")<br> })</pre> | `{}` | no | |
| 51 | +| <a name="input_tags"></a> [tags](#input\_tags) | (Optional) A map of tags to add to all resources. | `map(string)` | `{}` | no | |
| 52 | + |
| 53 | +## Outputs |
| 54 | + |
| 55 | +| Name | Description | |
| 56 | +|------|-------------| |
| 57 | +| <a name="output_archives"></a> [archives](#output\_archives) | A list of archives for the event bus. | |
| 58 | +| <a name="output_arn"></a> [arn](#output\_arn) | The Amazon Resource Name (ARN) of the event bus. | |
| 59 | +| <a name="output_id"></a> [id](#output\_id) | The unique identifier for the event bus. | |
| 60 | +| <a name="output_name"></a> [name](#output\_name) | The name of the event bus. | |
| 61 | +| <a name="output_schema_discovery"></a> [schema\_discovery](#output\_schema\_discovery) | The configuration for schema discovery of the event bus. | |
| 62 | +<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
0 commit comments