
Create an EventBridge rule with SNS topic as target which has a Lambda function as subscription.
main.tf filters the events based upon the criteria in the aws_cloudwatch_event_rule block. When matching events are sent to EventBridge that trigger the rule, they are delivered as a JSON event payload to the SNS topic.aws_lambda_function block.git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/eventbridge-sns-lambda-terraformterraform initterraform apply