gpt4 book ai didi

amazon-web-services - "Basic health checks must not have an metric region specified."

转载 作者:行者123 更新时间:2023-12-03 07:37:03 24 4
gpt4 key购买 nike

交叉发帖来源:https://forums.aws.amazon.com/thread.jspa?threadID=280944

你好!

添加连接到警报的新 HealthCheck 时出现以下错误。 (有关详细信息,请参阅随附的屏幕截图)。

Invalid parameter : Basic health checks must not have an metric region specified.

我正在使用的配置:

...

AlertsEmailTopic:
Type: AWS::SNS::Topic
Properties:
DisplayName: !Join ['', ['ApiServiceAlerts-', !Ref "AWS::StackName"]]
Subscription:
-
Endpoint: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="23424f4651575063465b424e534f460d404c4e" rel="noreferrer noopener nofollow">[email protected]</a>
Protocol: email

ApiHealthCheckDownAlarm:
Condition: CreateProdResources
Type: AWS::CloudWatch::Alarm
Properties:
ActionsEnabled: true
AlarmActions:
- !Ref AlertsEmailTopic
ComparisonOperator: LessThanThreshold
EvaluationPeriods: 1
Namespace: AWS/Route53
MetricName: HealthCheckStatus
Period: 300
Statistic: Minimum
Threshold: 1
TreatMissingData: breaching

HealthCheckApi:
Condition: CreateProdResources
Type: AWS::Route53::HealthCheck
Properties:
HealthCheckConfig:
Port: "443"
Type: "HTTPS"
ResourcePath: /
FullyQualifiedDomainName: api.example.com
RequestInterval: "30"
FailureThreshold: "3"
AlarmIdentifier:
Name: !Ref ApiHealthCheckDownAlarm
Region: us-west-2
HealthCheckTags:
-
Key: "Name"
Value: "https://api.example.com"

我见过专门针对 aws-cli 的唯一其他有用信息,但我不知道如何将修复转换为 Cloudformation。请参阅https://forums.aws.amazon.com/thread.jspa?messageID=834963&tstart=0

非常感谢,亚历克斯

最佳答案

Route 53 运行状况检查警报始终位于 us-east-1,因为这是 Route 53 将运行状况检查指标传送到 CloudWatch 的区域,无论受监控的目标位于何处或您为运行状况检查程序选择了哪些区域。

您无法在此处指定其他区域,并且错误消息表明不应指定任何区域。

关于amazon-web-services - "Basic health checks must not have an metric region specified.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50479592/

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