Module: cloudwatch-events
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.
Usage
Here's how to invoke this example module in your projects
module "cloudwatch_event" {
source = "cloudposse/cloudwatch-events/aws"
version = "0.7.0"
name = var.name
namespace = var.namespace
tenant = var.tenant
environment = var.environment
stage = var.stage
cloudwatch_event_rule_description = var.cloudwatch_event_rule_description
cloudwatch_event_rule_pattern = var.cloudwatch_event_rule_pattern_json
cloudwatch_event_target_arn = module.sns.sns_topic.arn
}