I have this under parameter section ,
Parameters: PlatformSelect: Description: Cockpit platform Select. Type: String Default: qa-1 AllowedValue
Is there a reason why you are using Mapping in between?
Mapping
You could easily use !Sub instead
Resources: EC2Instance: Type: AWS::EC2::Instance Properties: InstanceType: !Ref InstanceType KeyName: !Ref KeyName Tags: - Key: Name Value: Test UserData: Fn::Base64: !Sub | #!/bin/bash ${PlatformSelect}