Cdk terraform changing the provider version


I tried to change the aws provider from 2.25 to 3.0, I wasn’t get any success, tried running all these,
npm run get
npm run build
cdktf get
cdktf synth
cdktf diff

I will fail in cdktf diff. But when I created a new repo on a new folder with the new provider version and do the init/diff/deploy, it will work, then on the previous repo, then it work as well. Weird, so if you will jump to new provider version, you need to rest it on a new repo/folder.


I forgot to run the “npm run upgrade”.

Can you tell us about the error you got at diff?