Here is a SAM template (same as a CloudFormation template):
Globals:
Function:
Environment:
Variables:
BAR: '{{resolve:ssm:myparam:1}}'
...
MyParam:
Type: "AWS::SSM::Parameter"
Properties:
Name: myparam
Type: String
Value: 'REPLACE_ME' # must be defined manually in the AWS Console
I cannot deploy this stack because:
FAILED. Reason: Parameters: [ssm:myparam:1] cannot be found.
Of course, I am creating this parameter in the stack…
How can I reference a SSM parameter I am creating in the same template?