来自:https://forums.aws.amazon.com/thread.jspa?threadID=280944
的交叉发布您好!
添加连接到警报的新HealthCheck时出现以下错误。 (有关详细信息,请参阅随附的屏幕截图)。
参数无效:基本运行状况检查不得包含指标区域 指定。
配置我使用:
...
AlertsEmailTopic:
Type: AWS::SNS::Topic
Properties:
DisplayName: !Join ['', ['ApiServiceAlerts-', !Ref "AWS::StackName"]]
Subscription:
-
Endpoint: alerts@example.com
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
非常感谢, 亚历
答案 0 :(得分:0)
Route 53运行状况检查警报始终位于us-east-1,因为这是Route 53将运行状况检查指标提供给CloudWatch的区域,无论监控目标位于何处或您为运行状况检查程序选择了哪些区域。
您无法在此处指定其他区域,错误消息表明不应指定任何区域。