Skip to content

Maximum schema version supported is 43.x.x, but found 45.0.0 - Amplify Sandbox Deployment Error

0

Having some deployment issue. decided to update the backend and backend-cli. added the aws-cdk plus cdk-lib. Cant seem to find a solution to the Schema version support issue? Confused and unable to find a clear example on resolving it.

CDK_CLI_ASM_VERSION: '45.0.0', CDK_CLI_VERSION: '1.1.1'

3:20:21 PM [amplify: DEPLOY_FAILED] 3:20:21 PM Deployment failed 3:20:21 PM [ERROR] [UnknownFault] Error: Cannot read asset manifest '/.amplify/artifacts/cdk.out/project_name-sandbox-unique-id.assets.json': Cloud assembly schema version mismatch: Maximum schema version supported is 43.x.x, but found 45.0.0 ∟ Caused by: [Error] Cannot read asset manifest '/.amplify/artifacts/cdk.out/project_name-sandbox-unique-id.assets.json': Cloud assembly schema version mismatch: Maximum schema version supported is 43.x.x, but found 45.0.0 3:20:21 PM Stack Trace for UnknownFault

frontend - dependencies:

@aws-amplify/adapter-nextjs 1.6.2 @aws-amplify/analytics 7.0.84 @aws-amplify/backend-ai 1.5.1 @aws-amplify/ui-react 6.11.2 @aws-amplify/ui-react-ai 1.5.0 @aws-amplify/ui-react-storage 3.10.3 @aws-sdk/client-cognito-identity-provider 3.821.0 @aws-sdk/client-dynamodb 3.812.0 @aws-sdk/client-eventbridge 3.812.0 @aws-sdk/client-lambda 3.817.0 @aws-sdk/lib-dynamodb 3.812.0 amplify link:amplify aws-amplify 6.14.4

devDependencies: @aws-amplify/ai-constructs 1.5.3 aws-cdk-lib 2.206.0 @aws-amplify/backend 1.16.1 constructs 10.4.2 @aws-amplify/backend-cli 1.8.0 cross-env 7.0.3 @types/aws-lambda 8.10.150 tailwind-merge 3.3.0 @types/node 22.15.18 tailwindcss 3.4.17 @types/react 18.3.21 tailwindcss-animate 1.0.7 @types/react-dom 18.3.7 typescript 5.8.3 aws-cdk 2.1021.0 typescript-plugin-css-modules 5.1.0

backend - dependencies:

@aws-amplify/backend 1.16.1 @aws-sdk/client-ssm 3.817.0 @aws-amplify/data-schema 1.21.0 @aws-sdk/lib-dynamodb 3.817.0 @aws-sdk/client-dynamodb 3.817.0 aws-cdk 2.1021.0 @aws-sdk/client-eventbridge 3.817.0 aws-cdk-lib 2.206.0 @aws-sdk/client-scheduler 3.817.0 constructs 10.4.2 @aws-sdk/client-sesv2 3.817.0 stripe 18.1.1

1 Answer
0
Accepted Answer

The error you're encountering is due to a version mismatch between your CDK CLI version and the schema version being used. The error message indicates that your deployment is trying to use schema version 45.0.0, but the maximum supported schema version is 43.x.x.

This issue typically occurs when there's a mismatch between the AWS CDK versions being used across your project components. In your case, you have multiple CDK-related packages with different versions:

  • aws-cdk: 2.1021.0
  • aws-cdk-lib: 2.206.0
  • CDK_CLI_VERSION: '1.1.1'

To resolve this issue, you need to ensure version compatibility between your CDK components. Here are some steps to fix it:

  1. Make sure you're using compatible versions of aws-cdk and aws-cdk-lib. Try aligning these versions.

  2. For Amplify Gen 2 (which you appear to be using based on your dependencies), ensure that your @aws-amplify/backend and @aws-amplify/backend-cli versions are compatible with each other.

  3. Consider downgrading your aws-cdk-lib to a version that supports schema version 43.x.x or lower, or alternatively, update your AWS Amplify components to versions that support the higher schema version.

  4. If you're using AWS Amplify's code-first development approach (Gen 2), make sure all your Amplify-related packages are on compatible versions.

  5. Check if there are any recent updates to the AWS Amplify CLI or SDK that might address this schema version compatibility issue.

This error is specifically related to the cloud assembly schema version mismatch between your CDK components and what Amplify supports in its deployment process.
Sources
AWS Amplify - Code First Development
AWS Amplify | Extensible Web & Mobile Apps | Amazon Web Services
CDK Deploy error started about an hour ago | AWS re:Post

answered a year ago

EXPERT

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.