Skip to content

Latest commit

 

History

History

eventbridge-event-bus

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

eventbridge-event-bus

This module creates following resources.

  • aws_cloudwatch_event_bus (optional)
  • aws_cloudwatch_event_bus_policy (optional)
  • aws_cloudwatch_event_archive (optional)
  • aws_schemas_discoverer (optional)

Requirements

Name Version
terraform >= 1.5
aws >= 4.58

Providers

Name Version
aws 5.31.0

Modules

Name Source Version
resource_group tedilabs/misc/aws//modules/resource-group ~> 0.10.0

Resources

Name Type
aws_cloudwatch_event_archive.this resource
aws_cloudwatch_event_bus.this resource
aws_cloudwatch_event_bus_policy.this resource
aws_schemas_discoverer.this resource
aws_cloudwatch_event_bus.default data source

Inputs

Name Description Type Default Required
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.
(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.
(Optional) description - The description of the new event archive.
(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.
(Optional) event_pattern - An event pattern to use to filter events sent to the archive. All events from the source will be archived when event_pattern is not provided.
list(object({
name = string
description = optional(string, "Managed by Terraform.")
retention_in_days = optional(number, 0)
event_pattern = optional(string)
}))
[] no
module_tags_enabled (Optional) Whether to create AWS Resource Tags for the module informations. bool true no
name (Optional) 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. If the value is default, it will load the default event bus that already exists instead of creating a new one. Defaults to default. string "default" no
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
resource_group_description (Optional) The description of Resource Group. string "Managed by Terraform." no
resource_group_enabled (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. bool true no
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
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.
(Optional) enabled - Whether to enable schema discovery. Defaults to false.
(Optional) description - The description of the schema discoverer. Maximum of 256 characters.
object({
enabled = optional(bool, false)
description = optional(string, "Managed by Terraform.")
})
{} no
tags (Optional) A map of tags to add to all resources. map(string) {} no

Outputs

Name Description
archives A list of archives for the event bus.
arn The Amazon Resource Name (ARN) of the event bus.
id The unique identifier for the event bus.
name The name of the event bus.
schema_discovery The configuration for schema discovery of the event bus.