I upgraded my AWS CDK to 1.10.1 today because it prompted me via:
************************************************** *** Newer version of CDK is available [1.10.0] *** *** Upgrade recommended *** **************************************************
After doing the upgrade via
npm install -i -g aws-cdk
I went to do a cdk ls or cdk diff and was greeted with the error:
CDK CLI can only be used with apps created by CDK >= 1.10.0
Googling around wasn’t too helpful but finally I figured out that it was complaining that my python dependencies had the old aws-cdk libraries installed.
A quick
rm -r .env/ python -m venv .env pip install -r requirements.txt
And I was back in business
cdk ls integration-pipeline