Cloudformation 堆栈在使用 cloudformation 创建 AWS::CloudWatch::Alarm 时抛出错误"Encountered unsupported property Comparison Operator" 。
根据 AWS 文档ComparisionOperator值GreaterThanOrEqualtoThreshold是有效的。我使用 AWSTemplateFormatVersion 作为2010-09-09
任何帮助,将不胜感激 :)
"CPUHighAlarm":{
"Type":"AWS::CloudWatch::Alarm",
"Properties":{
"AlarmDescription":"High CPU utilization",
"MetricName":"CPUUtilization",
"Namespace":"AWS/EC2",
"AlarmActions":[{"Ref":"asgScaleOut"}],
"ComparisionOperator": "GreaterThanOrEqualtoThreshold",
"EvaluationPeriods": "1",
"Threshold": "70",
"Period":"180",
"Statistic": "Average",
"Dimensions": [
{
"Name": "AutoScalingGroupName",
"Value": {
"Ref": "asg"
}
}
]
}
},