-
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
(cli): "To get rid of this warning, please upgrade to boostrap version >= undefined" #18633
Comments
We are seeing the same warning (for some time now) in our existing aws-cdk typescript project. We are at 1.140.0 but the warning was also being logged in 1.139.0 (and maybe earlier as well) |
Observing same warning as well with python based aws-cdk project on MacOS and Linux. Using cdk version 2.8.0 and also |
This seems concerning. As long as it is limited to a warning rather than a blocker, I am going to leave it as a high priority rather than urgent and investigate it as such. If this becomes a blocker, please comment to indicate and we can urgently investigate. Could you also indicate here whether you are experiencing this in v2 releases as well, or just v1? @frjtrifork how long is some time? Even a general estimate will help narrow the possible commits that could have introduced this. |
@NGL321 For me it is coming with v2 release. I have been using v2 release since quite a time and it wasn't there. Cannot say about v1. |
@NGL321 Our CICD pipeline that log this in a scheduled nightly run has been disabled for a while. So I don't have a specific time. I can say that it is not in the logs from the CICD runs performed before December 15 where the pipeline scheduler was disabled. The scheduler was enabled again on January 21 where the warning does appear. I have been running our cdk scripts locally a few times between Christmas and January 21 and I think I started seeing this around the time I updated to 1.139, but I cannot say for sure. Since it was just a warning I did not put much effort into investigating it. |
I just upgraded from |
I can see this warning was introduced ~16 days ago (cc @corymhall ) at 2256680 tagged with versions Reviewing the code above, I don't have any errors printed before the warning, so assume its because @NGL321 can confirm its not blocking anything for me, its just a console warning at the moment. |
UPDATE So it turns out that there was a great mismatch of minor versions between my cdk command line tool installed via npm and python library for cdk i.e. aws-cdk-lib . I just upgraded my requirements.txt to match with the version cdk cli and got rid of this warning. |
@Plasma - nice find. Even though it is just a warning it would be nice if it at least would provide a version for the message. In our case it has been almost a year since we did a cdk bootstrap in our production account and we are stil on 1.140.0 in production but will be migrating to 2.x in a few weeks.
|
@Plasma @frjtrifork this should be fixed in version |
@corymhall I can confirm the warning is fixed in 1.140.0. I thought I had updated to 1.140.0 - and did a stack diff and got the warning. But had forgotten to do install first so was still using 1.139.0 when I got the warning again. Sorry. |
@corymhall also fixed for me now too with CLI |
|
@corymhall Still facing this issue in |
Having the same with version 2.28.1 |
For me, the issue was old credentials. By running Running with latest installs; |
@vleandersson This doesn't solve the core issue. |
I did have the same issue, but the reason was the incorrect profile/account credential that I was using. Maybe it helps someone. |
I could solve this issue with |
What is the problem?
The output of
cdk diff
andcdk 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:
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 acdk 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.The text was updated successfully, but these errors were encountered: