Skip to content
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: lack of compatiblity with the CDK library #32172

Closed
raveenplgithub opened this issue Nov 18, 2024 · 3 comments
Closed

CLI: lack of compatiblity with the CDK library #32172

raveenplgithub opened this issue Nov 18, 2024 · 3 comments
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. package/tools Related to AWS CDK Tools or CLI

Comments

@raveenplgithub
Copy link

raveenplgithub commented Nov 18, 2024

Describe the bug

I'm having CLI schema mismatch during deployment

This CDK CLI is not compatible with the CDK library used by your application. Please upgrade the CLI to the latest version.
(Cloud assembly schema version mismatch: Maximum schema version supported is 36.0.0, but found 38.0.1)
$ poetry show|grep -i cdk
aws-cdk-asset-awscli-v1           2.2.211     A library that contains the A...
aws-cdk-asset-kubectl-v20         2.1.3       A Lambda Layer that contains ...
aws-cdk-asset-node-proxy-agent-v6 2.1.0       @aws-cdk/asset-node-proxy-age...
aws-cdk-cloud-assembly-schema     38.0.1      Cloud Assembly Schema
aws-cdk-lib                       2.167.1     Version 2 of the AWS Cloud De...
cdk-monitoring-constructs         7.13.1      cdk-monitoring-constructs
 $ poetry show aws-cdk-lib
 name         : aws-cdk-lib                                        
Version: 2.167.1                                            
 description  : Version 2 of the AWS Cloud Development Kit library 

dependencies
 - aws-cdk.asset-awscli-v1 >=2.2.208,<3.0.0
 - aws-cdk.asset-kubectl-v20 >=2.1.3,<3.0.0
 - aws-cdk.asset-node-proxy-agent-v6 >=2.1.0,<3.0.0
 - aws-cdk.cloud-assembly-schema >=38.0.1,<39.0.0
 - constructs >=10.0.0,<11.0.0
 - jsii >=1.104.0,<2.0.0
 - publication >=0.0.3
 - typeguard >=2.13.3,<4.3.0

required by
 - cdk-monitoring-constructs >=2.112.0,<3.0.0
$ cdk --version
2.167.1 (build d681b12)
$ node --version
v22.11.0
$ python --version
Python 3.12.0
$ cat /etc/issue
Ubuntu 23.04 \n \l

Not sure if this is local installation issue, anyone could help here?

@raveenplgithub raveenplgithub added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 18, 2024
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Nov 18, 2024
@mrgrain
Copy link
Contributor

mrgrain commented Nov 18, 2024

Hmm. The schema version changed was introduced in v2.160.0. This indicates you are somehow using a CLI < 2.160.

Can you run the command that produces the error with -vv and post the log here?

@raveenplgithub
Copy link
Author

@mrgrain The debug showed some older version of CDK toolkit; finally, it turned out my gitlab base image hasn't been updated correctly. After update to v2.167.1 - it works. Thx!

Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

2 participants