-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(ssm): Retrieve secure string without version number #17091
Comments
Referencing the latest version of a secure string is not possible in the underlying CloudFormation function. The documentation for property
For string parameters, this limitation doesn't exist in CloudFormation. Therefore there is a different behavior for String and Secure String. From my point of view, you have to create a parameter for the version number to pass different values for each environment. |
@peterwoodworth thanks, I will open as a feature request on the CF github repo! |
Supported by CF since April 2021 but no yet ported to CDK. See https://aws.amazon.com/about-aws/whats-new/2021/04/now-reference-latest-aws-systems-manager-parameter-values-in-aws-cloudformation-templates-without-specifying-parameter-versions/ Close aws#17091
Supported by CF since April 2021 but not yet ported to CDK. See https://aws.amazon.com/about-aws/whats-new/2021/04/now-reference-latest-aws-systems-manager-parameter-values-in-aws-cloudformation-templates-without-specifying-parameter-versions/ Close #17091 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…18187) Supported by CF since April 2021 but not yet ported to CDK. See https://aws.amazon.com/about-aws/whats-new/2021/04/now-reference-latest-aws-systems-manager-parameter-values-in-aws-cloudformation-templates-without-specifying-parameter-versions/ Close aws#17091 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
General Issue
Ability to retrieve secure string without version number
The Question
I am using ECS fargate and the secrets property to retrieve secret env vars from SSM.
The problem is you have to define the version number to retrieve a secure string (unlike a regular string) and this gets difficult when you deploy the same stack to different environments and the version of the secret may differ between environments.
Is there a better way of doing this or can I suggest this as a new feature request? It's not clear why you don't have to define a version for a regular string but you do for a secure one...
CDK CLI Version
1.107.0
Framework Version
No response
Node.js Version
12
OS
No response
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: