The `aws-cdk-cloud-assembly-schema` Python library defines the schema for the Cloud Assembly, which is the output of the AWS CDK's synthesis operation (e.g., `cdk synth`). This schema, primarily found in `manifest.json`, acts as the communication protocol between the AWS CDK framework (libraries) and the AWS CDK CLI (tools), providing instructions for deploying infrastructure. The library is actively maintained with frequent updates, usually in sync with the broader AWS CDK CLI project, currently at version 53.14.0.
pip install aws-cdk-cloud-assembly-schemaVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates a basic AWS CDK application that creates an S3 bucket. While `aws-cdk-cloud-assembly-schema` is not directly imported here, running `cdk synth` on this application will produce a Cloud Assembly (including `manifest.json`) that conforms to the schema defined by this library. This illustrates the library's role as an underlying protocol definition rather than a direct development dependency for resource creation.
Always upgrade your AWS CDK CLI (globally installed `cdk` command) to the latest version to ensure compatibility with your `aws-cdk-lib` version. This is the recommended solution over downgrading libraries. Use `npm update -g aws-cdk` or `pip install --upgrade aws-cdk` (if using pip for CLI).
For defining AWS infrastructure programmatically, use `aws-cdk-lib` which provides higher-level constructs and a more application-centric API. Reserve direct interaction with `aws-cdk-cloud-assembly-schema` for advanced scenarios like building custom CDK tooling or validating generated Cloud Assemblies.
When building tools that consume cloud assemblies, always consider the major version of the schema. Consumers should reject cloud assemblies with a major version higher than what they explicitly support to guarantee deployment integrity, even if schema validation appears to pass.
Install the module using pip: 'pip install aws-cdk.cloud-assembly-schema'.
Add the package to your project by running: 'npm install @aws-cdk/cloud-assembly-schema'.
Update the AWS CDK CLI to the latest version by running: 'npm install -g aws-cdk'.
Upgrade your AWS CDK CLI to the latest version (`npm install -g aws-cdk@latest` for JavaScript/TypeScript, or update your `aws-cdk` package in Python) to ensure it supports the schema version output by your application.
Ensure all your AWS CDK related packages (`aws-cdk-lib`, `constructs`, etc.) are updated to compatible versions, especially if you have recently upgraded or changed dependencies. If the issue persists, review recent changes in your CDK application code for any non-standard or incorrectly configured constructs that might produce an invalid manifest.