【问题标题】:CloudWatch Alarm created via Cloudformation Value of property OKActions must be of type List of String通过 Cloudformation 创建的 CloudWatch 警报 OKActions 属性的值必须是字符串列表类型
【发布时间】:2021-02-22 18:41:40
【问题描述】:

我在 cloudformation 中设置的闹钟:

ClientErrorAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
  ......
  OKActions:
    - !Ref SNSSquadCast
  ......

返回错误:Value of property OKActions must be of type List of String

也是这样

OKActions:
    - Ref: SNSSquadCast

我不知道还能尝试什么

【问题讨论】:

  • 什么是SNSSquadCast
  • 这正是我在cloudformation模板中命名sns资源的原因。

标签: amazon-cloudformation amazon-cloudwatch cloudwatch-alarms


【解决方案1】:

所以,我没有具体的原因说明为什么会发生这种情况。我刚刚删除了堆栈并重新部署,它工作了

【讨论】:

    猜你喜欢
    • 2021-12-05
    • 2020-11-06
    • 1970-01-01
    • 2020-03-25
    • 2020-07-14
    • 1970-01-01
    • 1970-01-01
    • 2021-08-06
    • 1970-01-01
    相关资源
    最近更新 更多