Property validation failure: [Value of property {/Tags} does not match type {Map}] for AWS::SSM::Parameter in YAML

Question:

The following codesnippet:

generates the following error in CloudFormation:

Property validation failure: [Value of property {/Tags} does not match type {Map}] for AWS::SSM::Parameter in CloudFormation

How should I structure the Tags property correctly?

Answer:

As shown in the examples of https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html.
The structure the Tags property varies by Resource (see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
For AWS::SSM::Parameter Use key-value pairs instead of a Map:

This fixed my problem.

Leave a Reply