2 Answers
- Newest
- Most votes
- Most comments
1
You can't specify the version of Parameter when you create it, which is a result of the underlying API also not allowing that. Parameters will have a new version created automatically when they are updated.
I'd suggest instead creating multiple Parameters for your different requirements, which will also allow you better visibility and tracking of changes in the future. You can use /
characters in your Parameter names to create a hierarchy to help with organisation (and access control).
0
You could pass the Parameter Store parameter key in as a string and the version as a string. Then use a dynamic reference to that parameter. See: SSM parameters
Relevant content
- asked 2 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 10 months ago
I have tried its not working below is my Yaml script for only SSM Parameter. Property validation failure: [Encountered unsupported properties in {/}: [Version]] MYSSHSecuritygroupParameter: Type: AWS::SSM::Parameter Properties: Name: Security Type: String Value: !Ref MySSHSecurityGroup Tier: Standard Policies: '[{"Type":"String","Version":"1.0"}]' #Version: 1.0 Description: My SSH Securitygroup on SSM Parameter
Version is not supported. How are you using this parameter?
You have said like "Parameter Store parameter key in as a string and the version as a string" i passed it throws error.