I have a cloudformation template that uses a few ssm parameters. Those parameters are only defined in a given region for a given account. I would like to use the ssm parameters if they are defined and not use them if they are not defined in a given region (perhaps default to a certain string value like "undefined").
Something like this
Parameters:
anssmparameter:
Type: AWS::SSM::Parameter::Value<String>
# if ssmparam is defined
Default: ssmparam
# else ssmparam is not defined use a different default
Default: "a placeholder value"
Description: some description
Is this possible in cloudformation? I have researched a bit and it seems this is not possible?
The close I have seen is this which essentially says it is not possible