aws-cdk: (cli): "To get rid of this warning, please upgrade to boostrap version >= undefined"
What is the problem?
The output of cdk diff and cdk deploy are showing the following console warning after printing stack names:
(To get rid of this warning, please upgrade to bootstrap version >= undefined)
For example:
> cdk diff --profile MyProfile
Including dependency stacks: MyStack
Stack MyStack123
(To get rid of this warning, please upgrade to bootstrap version >= undefined)
There were no differences
Stack MyStack456
(To get rid of this warning, please upgrade to bootstrap version >= undefined)
There were no differences
Reproduction Steps
Unable to reproduce outside my current CDK project.
What did you expect to happen?
This error to not appear, or the undefined value to indicate a value to upgrade to, or for the error to have been fixed after a cdk bootstrap was ran.
What actually happened?
The error persists even after a npm install -g aws-cdk, cdk boostrap --profile MyProfile succeeding, and using the latest .NET AWS CDK at time of writing (1.140.0).
CDK CLI Version
2.8.0 (build 8a5eb49)
Framework Version
No response
Node.js Version
n/a
OS
Windows
Language
.NET
Language Version
1.140.0 C# NuGet
Other information
A brand new cdk init project does not show this error, it must be related to my CDK project.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 9
- Comments: 19 (4 by maintainers)
@corymhall Still facing this issue in
"aws-cdk": "^2.14.0"(npm only, no python)Having the same with version 2.28.1
For me, the issue was old credentials. By running
cdk deploy -vand looking at the logs it was clear that this was the issue. By using the correct profile with accepted credentials this was resolved.Running with latest installs;
aws-cli/2.7.14 Python/3.9.11with node"aws-cdk": "^2.31.1"insideyarn 3.2.1I just upgraded from
2.0.0(using it since early December) to2.8.0and now seeing this very same warning.