cloudformation ssm dynamic reference with type stringlist resolve to list workaround

As found here

While waiting for AWS to implement the pending feature request for {{resolve: ... dynamic references to resolve to ‘List of String’ type, you can work around this currently using the SSM parameter type of AWS::SSM::Parameter::Value<List<String>> with a default value corresponding to the SSM parameter you want to reference:

    Type: AWS::SSM::Parameter::Value<List<String>>
    Default: security-groups
  Type: AWS::EC2::Instance
    SecurityGroupIds: !Ref SecurityGroups

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s