Reputation: 187
I want to create a cloudwatch alarm for my Route53 Healthcheck status of certain endpoint using cloudformation template.
This is my cloudformation template for Route53 HealthCheck status:
EndpointHealthCheck:
Properties:
HealthCheckConfig:
AlarmIdentifier:
Name: !Ref EndpointCriticalAlarm
Region: !Ref AWS::Region
Type: HTTPS
ResourcePath: /sample/path
FullyQualifiedDomainName: sample.com
RequestInterval: 60
FailureThreshold: 5
This is my cloudwatch alarm:
EndpointCriticalAlarm:
Type: "AWS::CloudWatch::Alarm"
Properties:
AlarmDescription: sample description
AlarmName: HealthCheckAlarm
Namespace: "AWS/Route53"
MetricName: HealthCheckStatus
ComparisonOperator: GreaterThanOrEqualToThreshold
Period: 60
EvaluationPeriods: 1
Statistic: Average
Threshold: !Ref FailureThreshold
AlarmActions:
- !Ref AlarmSNSTopicArn
Is the cloudwatch alarm able to gather data from Route53 healthcheck status? Thanks
Upvotes: 4
Views: 1410
Reputation: 5905
It is not possible because of the region constraints which apply to CloudFormation and HealthCheck alarms: https://stackoverflow.com/a/66969674/1714171
Upvotes: 0
Reputation: 131
I used to face the same issue and ActionsEnabled: true
in the alarm definition fixed that
Upvotes: 0