generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
Description
Describe the feature
CdkBootstrapVersion SSM Parameter currently is an integer value. I'd like CDK to support encrypted value or any string value.
Use Case
Though the CdkBootstrapVersion value is an integer value with no sensitive data, there are cases where customers use automation systems that encrypts unencrypted SSM Parameter values that cause issue when deploying CDK stack.
For example, when the SSM Parameter value is encrypted, the cdk deploy fails with the error:
stack: SSM parameter /cdk-bootstrap/hnb659fds/version not a number: <encrypted_value>
This was pointed out early as well in Issue #30129
Proposed Solution
- Since the source code performs an AWS SDK call and checks if the value is an integer, the code could check for any string value and ensure that the SSM Parameter exists, rather than forcing it to be an integer value.
- Alternatively,
CdkBootstrapVersionSSM Parameter could be created asSecureStringinstead ofStringonce it is supported by AWS CloudFormation. Then the SSM GetParameter call can be used withWithDecryptionset toTrueto solve this issue.
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.1030.0
Environment details (OS name and version, etc.)
Amazon Linux 2023, TypeScript