-
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
Changing ssm parameter from string -> securestring throws me an cdk deployment error #30129
Comments
Bootstrap version SSM parameter is defined as Parameters:
BootstrapVersion:
Type: AWS::SSM::Parameter::Value<String>
Default: /cdk-bootstrap/hnb659fds/version
Description: Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]
Resources:
...
...
Rules:
CheckBootstrapVersion:
Assertions:
- Assert:
Fn::Not:
- Fn::Contains:
- - "1"
- "2"
- "3"
- "4"
- "5"
- Ref: BootstrapVersion
AssertDescription: CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI. As per description Per CDK Bootstrapping documentation,
I would rather go with 2nd option to add necessary IAM permissions. Hope it unblocks you. On a side note, is there any specific reason for which you would you like to make the SSM parameter Thanks, |
I tried both option but still failed, ❌ Deployment failed: Error: Stack: SSM parameter /cdk-bootstrap/hnb659fds/version not a number: |
@maddyexplore I would need to investigate the workaround (above and if any) at my end. In the meanwhile, could you please share if there any specific reason for which you would you like to make the SSM parameter Thanks, |
Investigation:
Finding: The method versionFromSsmParameter() uses AWS JS SDK SSM.getParameter() without using the The document Read Systems Manager values at synthesis time mentions that Need to discuss with Core CLI team. |
Even though its not a sensitive data, we thought that storing it in a secure way since SSM parameter supports the would appreciate the quicker fix for this |
@maddyexplore Good morning. Per review from the CDK team, this is not an issue. Resources created by bootstrap template should not be manually altered. Doing so may lead to unexpected failures, as observed in this issue. Thanks, |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Describe the bug
I was trying to secure all strings in ssm parameter group and I found the cdk-bootstrap version there and I changed it into securestring, after that any deployment with cdk fails with error
AutomationStack: SSM parameter /cdk-bootstrap/<blabla>/version not a number
Expected Behavior
it should sense and decrypt with the km kwy
Current Behavior
throws me error
Reproduction Steps
secure all strings in ssm parameter group and I found the cdk-bootstrap version there and I changed it into securestring, after that any deployment with cdk fails
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.124.0
Framework Version
No response
Node.js Version
v21.6.1
OS
Windows
Language
Python
Language Version
python 3.10
Other information
No response
The text was updated successfully, but these errors were encountered: