Cloudformation
Snippets
How to check for an empty CommaDelimitedList
Parameters:
SecurityGroupIds:
Type: CommaDelimitedList
Default: ""
Conditions:
hasSecurityGroupIds: !Not [!Equals [!Join ["", !Ref SecurityGroupIds], ""]]
...
Parameters:
SecurityGroupIds:
Type: CommaDelimitedList
Default: ""
Conditions:
hasSecurityGroupIds: !Not [!Equals [!Join ["", !Ref SecurityGroupIds], ""]]
...