-
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
cdk cli synth: Erroneous error - CDK bootstrap stack version 6 required #22907
Comments
Hey @mcqj, I wasn't able to reproduce this following your reproduction steps. I suspect that because this is occurring during synth, that you might be performing some lookups such as Additionally, can you verify the account + region you are synthesizing in, and make sure that that region is the region that has been bootstrapped with version 14? |
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. |
I have exactly this problem, using the stack generated with Parameter Store has /cdk-bootstrap/xxx/version → 14, everything is in us-east-1 |
I have also received this exact problem using cdk version: 2.70.0 (build c13a0f1) this week. I am just running the basic cdk init template stack as shown below. cdk deploy works.
|
I also have this issue: cdk --version
2.85.0 (build 4e0d726) cdk bootstrap
✅ Environment aws://xxxxxxxxxxxxx/xxxxxxxxxxxx bootstrapped (no changes). cdk synth
AssertDescription: CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI. And: cdk diff
Other Changes
[+] Unknown 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."}]}} cdk list
CdkStack |
For anyone else who stumbles across this. It looks like this isn't actually an error, but a terrible UI design |
Is it unreasonable to expect AWS to fix it, so that people (particularly beginners) are not concerned by 'error messages' that seem to mean nothing? |
Describe the bug
When creating a very simple stack using
cdk init
,cdk synth
fails with the error message shown below.However, retrieving the version from parameter store shows bootstrap version 14.
cdk deploy
does correctly deploy the stack, so the problem is only with synth.Expected Behavior
cdk synth
should create Cloudformation templateCurrent Behavior
'cdk synth` errors out, expecting a specific (and old) version of bootstrap.
Reproduction Steps
Create a new stack with
Bootstrap with
Try to synthesize with
Possible Solution
Update the version check in cdk synth
Additional Information/Context
No response
CDK CLI Version
2.50.0
Framework Version
2
Node.js Version
16.18.0
OS
Macos Monterey
Language
Typescript
Language Version
Using Javascript
Other information
No response
The text was updated successfully, but these errors were encountered: