AWS CloudFormation Error 'Value of property AlarmActions must be of type List of String'

Dev93 :

i am trying to update my cf stack and encounter the following error on deploy: 'Value of property AlarmActions must be of type List of String'

this is the property AlarmActions:

 AlarmActions:
                - !Ref SparksTeamSNSTopic
                - !If
                    - CreateProdResources
                    - - !Ref SparksProdAlarmSNSTopic
                      - !ImportValue
                          'Fn::Sub': '${Environment}-BMCMajorAlarmTopic'
                    - - !Ref 'AWS::NoValue'                   
franklinsijo :

Try this,

AlarmActions:
    - !Ref SparksTeamSNSTopic
    - !If
      - CreateProdResources
      - - !Ref SparksProdAlarmSNSTopic
        - !ImportValue
            'Fn::Sub': '${Environment}-BMCMajorAlarmTopic'
      - !Ref 'AWS::NoValue'  

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=390699&siteId=1