-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(core): SecretValue.ssmSecure not working without version #18729
Comments
What confuses me: Based on CloudFormation documentation, the format with the |
Regradless, I've created #18730, that fixes the issue as described above. This does not fix |
When no version is specified, the `:` at the end is not allowed. Closes #18729. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
When no version is specified, the `:` at the end is not allowed. Closes aws#18729. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
It is possible to omit the `version` of an SSM SecureString parameter. When omitted, the reference generated by CDK results in a ValidationError when applying the changes. e.g. ``` Error [ValidationError]: Incorrect format is used in the following SSM reference: [{{resolve:ssm-secure:/some/parameter:}}] ```
…orking without version (#22618) It is possible to omit the `version` of an SSM SecureString parameter. When omitted, the reference generated by CDK results in a ValidationError when applying the changes. e.g. ``` Error [ValidationError]: Incorrect format is used in the following SSM reference: [{{resolve:ssm-secure:/some/parameter:}}] ``` Related to #18729 Replaces #22311 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
What is the problem?
When I try to use
SecretValue.ssmSecure('/name')
, without specifying a version, I get the following error message:Reproduction Steps
Create an SSM SecureString parameter called
/name
. Init an app with TypeScript CDK, install"@aws-cdk/aws-amplify-alpha"
, change the Stack to the following and thencdk deploy
:What did you expect to happen?
Deploy should not have trouble receiving the value from Parameter Store.
What actually happened?
CDK CLI Version
2.9.0 (build a69725c)
Framework Version
2.9.0
Node.js Version
v16.13.1
OS
Windows 10
Language
Typescript
Language Version
4.5.3
Other information
When I manually changed the following lines
to
it worked, so it seems that the expected form is
{{resolve:ssm-secure:/name}}
without the colon at the end.The text was updated successfully, but these errors were encountered: