Monitoring AWS Route53 health checks in other regions than us-east-1

Viewed 17

I have a health check configured to monitor us-west-2. I also want to setup an alarm for this healthcheck. However, I don't think this will work because the alarms for health checks must be in us-east-1, but the services themselves are in us-west-2. I am using CloudFormation to define the stack. The issue is that you cannot reference the Healthcheck deployed while in us-west-2 when creating the alarm in us-east-1.

Here's a snippet of my alarm:

Alarm:
Condition: IsEast1AndMultiRegion
Type: AWS::CloudWatch::Alarm
Properties:
  ActionsEnabled: true
  AlarmActions:
    - !Ref AlarmTopic
  ComparisonOperator: LessThanOrEqualToThreshold
  EvaluationPeriods: 1
  MetricName: HealthCheckPercentageHealthy
  Namespace: AWS/Route53
  AlarmDescription: "Alarm for Health Check"
  Period: 60
  Statistic: Maximum
  Threshold: 99
  TreatMissingData: notBreaching
  Dimensions:
    - Name: HealthCheckId
      Value: !GetAtt HealthCheckWithEndpoint.HealthCheckId
    - Name: Region
      Value: !FindInMap [ AccountSpecific, !Ref "AWS::AccountId", PrimaryRegion ]
0 Answers
Related