cloudwatch-events

cloudposse/cloudwatch-events/aws

Terraform Module HCL AWS

Terraform Module for provisioning CloudWatch Events rules connected with targets.

Install
module "cloudwatch-events" {
source = "cloudposse/cloudwatch-events/aws"
version = "0.9.1"
}
plain text: /constructs/tfmod-cloudposse-cloudwatch-events-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

This is terraform-aws-cloudwatch-events module that creates CloudWatch Events rules and according targets. > Amazon CloudWatch Events delivers a near real-time stream of system events that describe changes in Amazon Web Services (AWS) resources. Using simple rules that you can quickly set up, you can match events and route them to one or more target functions or streams. CloudWatch Events becomes aware of operational changes as they occur. CloudWatch Events responds to these operational changes and takes corrective action as necessary, by sending messages to respond to the environment, activating functions, making changes, and capturing state information. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works

Inputs (25)
NameTypeDescriptionDefault
cloudwatch_event_rule_patternstringEvent pattern described a HCL map which will be encoded as JSON with jsonencode required
cloudwatch_event_target_arnstringThe Amazon Resource Name (ARN) associated of the target. required
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will null
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by null
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tagnull
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
cloudwatch_event_rule_descriptionstringThe description of the rule.""
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
enabledboolSet to false to prevent the module from creating any resourcesnull
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bunull
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
cloudwatch_event_rule_is_enabledboolDEPRECATED (use `cloudwatch_event_rule_state` instead): Whether the rule should null
cloudwatch_event_rule_statestringState of the rule. Valid values are DISABLED, ENABLED, and ENABLED_WITH_ALL_CLOU"ENABLED"
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indinull
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` null
cloudwatch_event_target_idstringThe unique target assignment ID. If missing, will generate a random, unique id.null
cloudwatch_event_target_role_arnstringIAM role to be used for this target when the rule is triggered.null
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["nanull
Outputs (2)
aws_cloudwatch_event_rule_id — The name of the rule
aws_cloudwatch_event_rule_arn — The Amazon Resource Name (ARN) of the rule.
Resources (2)
aws_cloudwatch_event_ruleaws_cloudwatch_event_target
Details
FrameworkTerraform Module
LanguageHCL
Version0.9.1
Cloud AWS
★ Stars16
Forks18
Total downloads468.2k
Inputs25
Outputs2
Resources2
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated