Skip to content

Commit c42c5b4

Browse files
authored
fix(deploy): bump @aws-cdk/toolkit-lib to read cloud-assembly schema 54 (#1465)
aws-cdk-lib@2.258.0 (published 2026-06-04) bundles cloud-assembly-schema ^54.0.0, so freshly-created CDK projects now write schema-54 manifests. The CLI's bundled @aws-cdk/toolkit-lib@1.24.0 reads only up to schema 53, so synth fails with AssemblyVersionMismatch ("Maximum schema version supported is 53.x.x, but found 54.0.0"). Bump @aws-cdk/toolkit-lib ^1.16.0 -> ^1.28.0 (resolves the bundled reader to 1.28.0, whose nested cloud-assembly-schema is 54.2.0) and regenerate npm-shrinkwrap.json. 1.28.0 reads schema 54 and all of 53 — forward compatible — and is an API-compatible drop-in (no source changes). Also bump the generated template's aws-cdk devDep 2.1100.1 -> 2.1126.0 so the manual `npm run cdk` escape hatch can also read schema 54. Verified by reproducing the customer scenario: a fresh project resolving aws-cdk-lib@2.258.0 writes a 54.0.0 manifest, and `agentcore deploy --dry-run` now synthesizes cleanly (Synthesize CloudFormation: SUCCESS).
1 parent dd255e3 commit c42c5b4

4 files changed

Lines changed: 50 additions & 39 deletions

File tree

npm-shrinkwrap.json

Lines changed: 47 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"bundle": "node scripts/bundle.mjs"
7676
},
7777
"dependencies": {
78-
"@aws-cdk/toolkit-lib": "^1.16.0",
78+
"@aws-cdk/toolkit-lib": "^1.28.0",
7979
"@aws-sdk/client-application-signals": "^3.1003.0",
8080
"@aws-sdk/client-bedrock": "^3.1012.0",
8181
"@aws-sdk/client-bedrock-agent": "^3.1012.0",

src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ exports[`Assets Directory Snapshots > CDK assets > cdk/cdk/package.json should m
414414
"@types/node": "^24.10.1",
415415
"jest": "^29.7.0",
416416
"ts-jest": "^29.2.5",
417-
"aws-cdk": "2.1100.1",
417+
"aws-cdk": "2.1126.0",
418418
"prettier": "^3.4.2",
419419
"typescript": "~5.9.3"
420420
},

src/assets/cdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@types/node": "^24.10.1",
1919
"jest": "^29.7.0",
2020
"ts-jest": "^29.2.5",
21-
"aws-cdk": "2.1100.1",
21+
"aws-cdk": "2.1126.0",
2222
"prettier": "^3.4.2",
2323
"typescript": "~5.9.3"
2424
},

0 commit comments

Comments
 (0)