我想了解如何/在何处指定CloudFormation模板中CloudWatch指标的区域。我试图在多个位置指定值。这导致了大多数格式错误的对象或不受支持的属性错误。我必须假设其不受支持,或者配置中可能存在变通办法。我还尝试修改警报源选项卡(在AWS UI中)区域属性,该属性可保存并显示正确的图形值。只有稍后,它才会恢复更新警报的最后一步。在创建新警报时也可以观察到相同的行为。本质上,我想要的是跨区域警报之类的东西。
MyAlarm:
Type: "AWS::CloudWatch::Alarm"
Properties:
AlarmName: "MyAlarm"
AlarmDescription: "a cool description"
Dimensions:
- Name: TaskListName
Value: BatchWorkerTaskList
- Name: Domain
Value: SomeDomain
Region: us-east-1 # <- tried this
Metrics:
Region: us-east-1 # <- tried this
MetricName: PendingTasks
Namespace: AWS/SWF
Period: 300
ComparisonOperator: GreaterThanOrEqualToThreshold
EvaluationPeriods: 1
ExtendedStatistic: p50
Threshold: 20
Unit: Count
AlarmActions:
- !Ref "TriggerSomeScaling"
答案 0 :(得分:0)
属性ExecuteAsync
无效,并且对于AWS::CloudWatch::Alarm或AWS::CloudWatch::Alarm MetricDataQuery都不存在,说明了模板失败的原因。