aws cdk cli: Maximum schema version supported is 43.x.x, but found 44.0.0
Describe the bug
(Cloud assembly schema version mismatch: Maximum schema version supported is 43.x.x, but found 44.0.0. You need at least CLI version 2.1018.1 to read this manifest.)
but I'm using latest cdk 2.1020.2 (build cf35f57), search for cdk cli bug.
rolling back to [email protected] fixed the problem
Regression Issue
- [ ] Select this option if this issue appears to be a regression.
Last Known Working CDK Library Version
No response
Expected Behavior
no err msg.
Current Behavior
error: "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 43.x.x, but found 44.0.0. You need at least CLI version 2.1018.1 to read this manifest.)"
Reproduction Steps
use cli "aws-cdk": "2.1020.2",
build cdk: "aws-cdk-lib": "2.200.1",
Possible Solution
roll back to "aws-cdk": "2.1018.1",
Additional Information/Context
No response
AWS CDK Library version (aws-cdk-lib)
2.1018.1
AWS CDK CLI version
2.1020.2
Node.js Version
22lte
OS
windows
Language
TypeScript
Language Version
No response
Other information
No response
Describe the bug
I'm getting a similar issue. 44.x.x, but found 45.0.0
Reproduction Steps
- AWS CodePipeline / CodeBuild
- Linux Ubuntu 7.0
- Python 3.13
- aws-cdk-lib ==2.204.0
- aws cli == 2.1020.2
- Failures occur on the Assets stage/step
AWS CDK Library version (aws-cdk-lib)
2.204.0
AWS CDK CLI version
2.1020.2
Possible Solution
Rolling AWS CDK Library version (aws-cdk-lib) back to 2.203.1 or prior, which rolls back to aws_cdk_cloud_assembly_schema-44.9.0, this is what the Assets CodeBuild Image is expecting.
Output on Assets I removed the asset path to shorten the output.
[Container] 2025/07/06 19:05:13.944546 Running command npm install -g cdk-assets@latest
....
Running command cdk-assets --path "<asset-path-removed>"
Error: Cannot read asset manifest '<asset-path-removed>.assets.json': Cloud assembly schema version mismatch: Maximum schema version supported is 44.x.x, but found 45.0.0
Downloading the assets from S3
cdk.out file
{"version":"45.0.0"}
Output on Instance Running CDK_Synth
Main things to see... the aws-cdk-lib-2.204.0 & aws-cdk.cloud-assembly-schema-45.1.0
aws-cdk-lib-2.204.0 aws-cdk.asset-awscli-v1-2.2.242 aws-cdk.asset-node-proxy-agent-v6-2.1.0 aws-cdk.cloud-assembly-schema-45.1.0
Full list of packages
Installing collected packages: typish, pytz, publication, wrapt, typing-extensions, types-python-dateutil, typeguard, python-dotenv, pyjwt, jsons, importlib_resources, idna, charset_normalizer, attrs, requests, cattrs, aws-lambda-powertools, jsii, aws-xray-sdk, constructs, aws-cdk.cloud-assembly-schema, aws-cdk.asset-node-proxy-agent-v6, aws-cdk.asset-awscli-v1, boto3-assist, aws-cdk-lib, cdk-nag, cdk_factory
Successfully installed attrs-25.3.0 aws-cdk-lib-2.204.0 aws-cdk.asset-awscli-v1-2.2.242 aws-cdk.asset-node-proxy-agent-v6-2.1.0 aws-cdk.cloud-assembly-schema-45.1.0 aws-lambda-powertools-3.16.0 aws-xray-sdk-2.14.0 boto3-assist-0.25.0 cattrs-24.1.3 cdk-nag-2.36.33 cdk_factory-0.0.38 charset_normalizer-3.4.2 constructs-10.4.2 idna-3.10 importlib_resources-6.5.2 jsii-1.112.0 jsons-1.6.3 publication-0.0.3 pyjwt-2.10.1 python-dotenv-1.1.1 pytz-2025.2 requests-2.32.4 typeguard-2.13.3 types-python-dateutil-2.9.0.20250516 typing-extensions-4.14.1 typish-1.9.3 wrapt-1.17.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
Also experiencing this issue, this is killing all our deployment pipelines
I am getting around this by ignoring 2.204.0 for now -
aws-cdk-lib = "^2, !=2.204.0"
Broken for us too, reverted back to version 2.203.1
Maximum schema version supported is 44.x.x, but found 45.0.0
Getting error in the assets loading stage:
[Container] 2025/07/07 10:21:00.351646 Running command cdk-assets --path "assembly-XXX.assets.json" --verbose publish "4d8905b01fdeb7d52706d74a0adb484b73292e71a0c2ce597f90795c97396fe1:529677883878-us-west-2"
Error: Cannot read asset manifest 'assembly-XXX/XXXassets.json': Cloud assembly schema version mismatch: Maximum schema version supported is 44.x.x, but found 45.0.0
at _AssetManifest.fromFile (/usr/local/lib/node_modules/cdk-assets/bin/cdk-assets.js:58022:17)
at _AssetManifest.fromPath (/usr/local/lib/node_modules/cdk-assets/bin/cdk-assets.js:58040:31)
at publish (/usr/local/lib/node_modules/cdk-assets/bin/cdk-assets.js:109831:55)
at /usr/local/lib/node_modules/cdk-assets/bin/cdk-assets.js:109911:33
at Object.handler (/usr/local/lib/node_modules/cdk-assets/bin/cdk-assets.js:109924:11)
at /usr/local/lib/node_modules/cdk-assets/bin/cdk-assets.js:108389:27
at j3 (/usr/local/lib/node_modules/cdk-assets/bin/cdk-assets.js:108285:51)
at _3.handleValidationAndGetResult (/usr/local/lib/node_modules/cdk-assets/bin/cdk-assets.js:108388:75)
at _3.applyMiddlewareAndGetResult (/usr/local/lib/node_modules/cdk-assets/bin/cdk-assets.js:108405:115)
at _3.runCommand (/usr/local/lib/node_modules/cdk-assets/bin/cdk-assets.js:108349:128)
[Container] 2025/07/07 10:21:00.654198 Command did not exit successfully cdk-assets --path "assembly-XXXX.assets.json" --verbose publish "4d8905b01fdeb7d52706d74a0adb484b73292e71a0c2ce597f90795c97396fe1:529677883878-us-west-2" exit status 1
[Container] 2025/07/07 10:21:00.659620 Phase complete: BUILD State: FAILED
[Container] 2025/07/07 10:21:00.659646 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: cdk-assets --path "XXXX.assets.json" --verbose publish "4d8905b01fdeb7d52706d74a0adb484b73292e71a0c2ce597f90795c97396fe1:529677883878-us-west-2". Reason: exit status 1
In my case I was sticking to: aws-cdk=2.1003 aws-cdk-lib=2.182
I also tried to update the CDK version to latest: aws-cdk=2.1020 aws-cdk-lib=2.204
but still getting the same error.
First impacted deploy happened in date July 4, it is failing since.
The problem was that a new version of cdk-assets should have been automatically released, but wasn't due to a problem in our automation.
I just published a new version, this should fix all pipelines automatically.
@rix0rrr thank you for the fix; I can confirm my affected pipelines are healthy again!
Confirmed working for me too.
Thanks for confirming everyone. I'll close this out then. Our automation has been fixed so this won't happen again.
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.