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)

Most upvoted comments

@corymhall Still facing this issue in "aws-cdk": "^2.14.0" (npm only, no python) Screenshot 2022-02-25 at 08 36 44

Having the same with version 2.28.1

For me, the issue was old credentials. By running cdk deploy -v and 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.11 with node "aws-cdk": "^2.31.1" inside yarn 3.2.1

I just upgraded from 2.0.0 (using it since early December) to 2.8.0 and now seeing this very same warning.