aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.65k stars 3.92k forks source link

CDK deploy: (Cloud assembly schema version mismatch: Maximum schema version supported is 14.0.0, but found 15.0.0) #17674

Closed mattiLeBlanc closed 2 years ago

mattiLeBlanc commented 2 years ago

What is the problem?

Since upgrading to v1.134 I am getting this error when running a CDK Deploy: (Cloud assembly schema version mismatch: Maximum schema version supported is 14.0.0, but found 15.0.0)

I get it locally on my new MacBook M1Max but also in Bitbucket Pipelines using image: node:12.16.1. v1.133 did not throw that error.

Locally I am running node 16 which gave me issues deploying my single page app to s3 (all files where empty) whilst running v1.68, hence the upgrade to 133. However with 134 I get this new error.

Overall, should I be running Node 14 or 16?

Reproduction Steps

Run node 14, try a deploy of Appsync API with s3 etc, and I am getting this error .

What did you expect to happen?

No error

What actually happened?

Error

CDK CLI Version

1.134.0 (build dd5e12d)

Framework Version

nodejs

Node.js Version

16

OS

osx

Language

Typescript

Language Version

No response

Other information

On bitbucket pipeline is running node 12.

mattiLeBlanc commented 2 years ago

Actually downgrading to 133 now also gives that same error (Cloud assembly schema version mismatch: Maximum schema version supported is 14.0.0, but found 15.0.0)

I hope this is not damaging our cloudformation setup because we cannot go along to path to have to destroy a stack to resolve this. How do I mitigate this?

mattiLeBlanc commented 2 years ago

I found out that aws-cdkwas having a mismatch. It was easy to not see that this package was not in sync since all the other packages start with @aws-cdk..

github-actions[bot] commented 2 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

gladykov commented 2 years ago

I found out that aws-cdkwas having a mismatch. It was easy to not see that this package was not in sync since all the other packages start with @aws-cdk..

But what was acutal fix?

oorobets commented 2 years ago

@gladykov Install the same version of cdk as your aws-cdk packages. For:

  "dependencies": {
    "@aws-cdk/aws-apigateway": "^1.154.0",
    "@aws-cdk/aws-route53-targets": "^1.154.0"
}

Install npm -g install aws-cdk@1.154.0