I have a CloudFormation template that accepts this parameter
TargetGroupName:
Type: String
Description: 'Parameter to override target group name'
Default: ''
However, instead of an empty string as default, how can I define is as a Null string, like this? I know Null is NOT a valid keyword, but I wanted to illustrate what I wanted to do.
TargetGroupName:
Type: String
Description: 'Parameter to override target group name'
Default: Null
And then, how can I set a condition to test for the Null string, like this?
Conditions:
CreateTargetGroup:
!Not [ !Equals [ !Ref TargetGroupName, Null ] ]
Of course the keyword Null throws a CloudFormation script validation exception since it's NOT a valid keyword.