- Newest
- Most votes
- Most comments
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:
-
Make sure you're using compatible versions of aws-cdk and aws-cdk-lib. Try aligning these versions.
-
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.
-
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.
-
If you're using AWS Amplify's code-first development approach (Gen 2), make sure all your Amplify-related packages are on compatible versions.
-
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
Relevant content
asked 2 years ago
