所以我已经有一个正在运行的,由cloudformation创建的现有redshift集群,现在我需要像下面的代码一样向该集群添加一个新的cloudwatch事件,如何将新警报与现有集群映射。
这是针对现有的AWS Redshift集群
Type: AWS::CloudWatch::Alarm
Properties:
AlarmDescription: !Join [ " ", [ "Health status alarm for", !Ref RedshiftCluster, "Redshift Cluster"]]
AlarmActions:
- !Ref redshiftClusterSNSTopic
MetricName: HealthStatus
Namespace: AWS/Redshift
Statistic: Average
Period: 300
EvaluationPeriods: 3
Threshold: 1
ComparisonOperator: LessThanThreshold
Dimensions:
- Name: ClusterIdentifier
Value: !Ref CARedshiftCluster
不确定如何执行此操作,不胜感激。