Sets alarms on warning and critical complaint & bounce rates in AWS SES, and sends them to the SNS topic(s) that you've defined.
Example implementation:
resource "aws_sns_topic" "email" {
provider = aws
name = "email"
}
resource "aws_sns_topic_subscription" "subscriber" {
provider = aws
topic_arn = aws_sns_topic.email.arn
protocol = "email"
endpoint = "[email protected]"
}
module "cloudwatch_ses_alarms" {
source = "[email protected]:AcroMedia/terraform-module-cloudwatch-ses-alarms.git?ref=main" # ?ref= can also point at a version tag.
providers = {
aws.src = aws # or your aliased aws provider
}
critical_sns_arn = aws_sns_topic.email.arn
warning_sns_arn = aws_sns_topic.email.arn
}