gpt4 book ai didi

amazon-web-services - 如何使用 CF 正确配置 Route53 HealthCheck 警报(悉尼)

转载 作者:行者123 更新时间:2023-12-04 00:41:20 26 4
gpt4 key购买 nike

我已通过 CloudFormation 配置了具有关联警报的 Route53 HealthCheck,但生成的运行状况检查显示为未配置警报,并且 CloudWatch 控制台中的警报仍然无效。如果我在 HealthChecks 中手动创建警报,一切正常。

更糟糕的是,如果我从悉尼/ap-southeast-2切换并在北弗吉尼亚州/us-east-1创建相同的云层堆栈,则警报为与健康检查正确关联,一切正常!

还有一个数据点:在 Route53 HealthChecks 中手动创建警报时,警报会在 us-east-1 中创建,尽管 Route53 是全局的并且 ap-southeast-1 > 是所有其他控制台的默认设置。

我的简化堆栈如下所示:

{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "healthcheck alarm test",
"Resources": {
"StatusHealthCheck": {
"Type": "AWS::Route53::HealthCheck",
"Properties": {
"HealthCheckConfig": {
"Port": "80",
"Type": "HTTP",
"ResourcePath": "/status",
"FullyQualifiedDomainName": "testdomain.com",
"RequestInterval": "30",
"FailureThreshold": "1"
},
"HealthCheckTags": [
{
"Key": "Name",
"Value": "status reachability check"
}
]
}
},
"StatusHealthCheckFailedAlarm": {
"Type": "AWS::CloudWatch::Alarm",
"Properties": {
"ActionsEnabled": "true",
"AlarmDescription": "alarmed when status doesn't respond",
"ComparisonOperator": "LessThanThreshold",
"EvaluationPeriods": "1",
"MetricName": "HealthCheckStatus",
"Namespace": "AWS/Route53",
"Period": "60",
"Statistic": "Minimum",
"Threshold": "1.0",
"Dimensions": [
{
"Name": "HealthCheckId",
"Value": {
"Ref": "StatusHealthCheck"
}
}
]
}
}
}
}

有什么理由它应该在北弗吉尼亚州起作用,但在悉尼不起作用?

最佳答案

HealthCheck 生成的 CloudWatch 指标仅在美国东部区域可见,如本页底部所述 http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-monitor-view-status.html 。这就是为什么您的堆栈在 us-east-1 中创建时可以正常工作的原因。

关于amazon-web-services - 如何使用 CF 正确配置 Route53 HealthCheck 警报(悉尼),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30434204/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com