Creates a CloudWatch Composite Alarm that triggers based on the state of other alarms.

Terraform Template

resource "aws_cloudwatch_composite_alarm" "example" {

  actions_suppressor {
    alarm = "suppressor-alarm"
    extension_period = 10
    wait_period = 20
  }
  alarm_actions = aws_sns_topic.example.arn
  alarm_description = "This is a composite alarm!"
  alarm_name = "example-composite-alarm"
  alarm_rule = <<-EOF
    ALARM(${aws_cloudwatch_metric_alarm.alpha.alarm_name}) OR
    ALARM(${aws_cloudwatch_metric_alarm.bravo.alarm_name})
    
  EOF
  ok_actions = aws_sns_topic.example.arn
}