# Cloud Assembly Schema
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
## Cloud Assembly
The *Cloud Assembly* is the output of the synthesis operation. It is produced as part of the
[`cdk synth`](https://github.com/aws/aws-cdk/tree/main/packages/aws-cdk#cdk-synthesize)
command, or the [`app.synth()`](https://github.com/aws/aws-cdk/blob/main/packages/@aws-cdk/core/lib/app.ts#L135) method invocation.
Its essentially a set of files and directories, one of which is the `manifest.json` file. It defines the set of instructions that are
needed in order to deploy the assembly directory.
> For example, when `cdk deploy` is executed, the CLI reads this file and performs its instructions:
>
> * Build container images.
> * Upload assets.
> * Deploy CloudFormation templates.
Therefore, the assembly is how the CDK class library and CDK CLI (or any other consumer) communicate. To ensure compatibility
between the assembly and its consumers, we treat the manifest file as a well defined, versioned schema.
## Schema
This module contains the typescript structs that comprise the `manifest.json` file, as well as the
generated [*json-schema*](./schema/cloud-assembly.schema.json).
## Versioning
The schema version is specified my the major version of the package release. It follows semantic versioning, but with a small twist.
When we add instructions to the assembly, they are reflected in the manifest file and the *json-schema* accordingly.
Every such instruction, is crucial for ensuring the correct deployment behavior. This means that to properly deploy a cloud assembly,
consumers must be aware of every such instruction modification.
For this reason, every change to the schema, even though it might not strictly break validation of the *json-schema* format,
is considered `major` version bump. All changes that do not impact the schema are considered a `minor` version bump.
## How to consume
If you'd like to consume the [schema file](./schema/cloud-assembly.schema.json) in order to do validations on `manifest.json` files,
simply download it from this repo and run it against standard *json-schema* validators, such as [jsonschema](https://www.npmjs.com/package/jsonschema).
Consumers must take into account the `major` version of the schema they are consuming. They should reject cloud assemblies
with a `major` version that is higher than what they expect. While schema validation might pass on such assemblies, the deployment integrity
cannot be guaranteed because some instructions will be ignored.
> For example, if your consumer was built when the schema version was 2.0.0, you should reject deploying cloud assemblies with a
> manifest version of 3.0.0.
## Contributing
See [Contribution Guide](./CONTRIBUTING.md)
Raw data
{
"_id": null,
"home_page": "https://github.com/cdklabs/cloud-assembly-schema",
"name": "aws-cdk.cloud-assembly-schema",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Amazon Web Services",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/58/51/cb849d755c9b5ef64faa2b965e1011eb91066ac1bca0df1057f44006de18/aws_cdk_cloud_assembly_schema-39.1.30.tar.gz",
"platform": null,
"description": "# Cloud Assembly Schema\n\nThis module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.\n\n## Cloud Assembly\n\nThe *Cloud Assembly* is the output of the synthesis operation. It is produced as part of the\n[`cdk synth`](https://github.com/aws/aws-cdk/tree/main/packages/aws-cdk#cdk-synthesize)\ncommand, or the [`app.synth()`](https://github.com/aws/aws-cdk/blob/main/packages/@aws-cdk/core/lib/app.ts#L135) method invocation.\n\nIts essentially a set of files and directories, one of which is the `manifest.json` file. It defines the set of instructions that are\nneeded in order to deploy the assembly directory.\n\n> For example, when `cdk deploy` is executed, the CLI reads this file and performs its instructions:\n>\n> * Build container images.\n> * Upload assets.\n> * Deploy CloudFormation templates.\n\nTherefore, the assembly is how the CDK class library and CDK CLI (or any other consumer) communicate. To ensure compatibility\nbetween the assembly and its consumers, we treat the manifest file as a well defined, versioned schema.\n\n## Schema\n\nThis module contains the typescript structs that comprise the `manifest.json` file, as well as the\ngenerated [*json-schema*](./schema/cloud-assembly.schema.json).\n\n## Versioning\n\nThe schema version is specified my the major version of the package release. It follows semantic versioning, but with a small twist.\n\nWhen we add instructions to the assembly, they are reflected in the manifest file and the *json-schema* accordingly.\nEvery such instruction, is crucial for ensuring the correct deployment behavior. This means that to properly deploy a cloud assembly,\nconsumers must be aware of every such instruction modification.\n\nFor this reason, every change to the schema, even though it might not strictly break validation of the *json-schema* format,\nis considered `major` version bump. All changes that do not impact the schema are considered a `minor` version bump.\n\n## How to consume\n\nIf you'd like to consume the [schema file](./schema/cloud-assembly.schema.json) in order to do validations on `manifest.json` files,\nsimply download it from this repo and run it against standard *json-schema* validators, such as [jsonschema](https://www.npmjs.com/package/jsonschema).\n\nConsumers must take into account the `major` version of the schema they are consuming. They should reject cloud assemblies\nwith a `major` version that is higher than what they expect. While schema validation might pass on such assemblies, the deployment integrity\ncannot be guaranteed because some instructions will be ignored.\n\n> For example, if your consumer was built when the schema version was 2.0.0, you should reject deploying cloud assemblies with a\n> manifest version of 3.0.0.\n\n## Contributing\n\nSee [Contribution Guide](./CONTRIBUTING.md)\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Cloud Assembly Schema",
"version": "39.1.30",
"project_urls": {
"Homepage": "https://github.com/cdklabs/cloud-assembly-schema",
"Source": "https://github.com/cdklabs/cloud-assembly-schema.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6697f5c3601342079d8b8377bad6b1de7771c6bfcc179aae632e2b23a7e280c2",
"md5": "aa3d247b32bd9fbfeb22bcb9b37c7574",
"sha256": "2e25a14086eca38e226ba534a8c9ff1bb00a5a00bc5f0307870b1d3a79e50ad6"
},
"downloads": -1,
"filename": "aws_cdk.cloud_assembly_schema-39.1.30-py3-none-any.whl",
"has_sig": false,
"md5_digest": "aa3d247b32bd9fbfeb22bcb9b37c7574",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 184090,
"upload_time": "2024-12-24T00:25:34",
"upload_time_iso_8601": "2024-12-24T00:25:34.023841Z",
"url": "https://files.pythonhosted.org/packages/66/97/f5c3601342079d8b8377bad6b1de7771c6bfcc179aae632e2b23a7e280c2/aws_cdk.cloud_assembly_schema-39.1.30-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5851cb849d755c9b5ef64faa2b965e1011eb91066ac1bca0df1057f44006de18",
"md5": "490ce5eaeb02c3ac1416c831a8fdb915",
"sha256": "b0b8787cd2ebfd146bf2313cef99b352e4d588cc8a3e5375cff5c132ffdd90d8"
},
"downloads": -1,
"filename": "aws_cdk_cloud_assembly_schema-39.1.30.tar.gz",
"has_sig": false,
"md5_digest": "490ce5eaeb02c3ac1416c831a8fdb915",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 185369,
"upload_time": "2024-12-24T00:25:36",
"upload_time_iso_8601": "2024-12-24T00:25:36.024140Z",
"url": "https://files.pythonhosted.org/packages/58/51/cb849d755c9b5ef64faa2b965e1011eb91066ac1bca0df1057f44006de18/aws_cdk_cloud_assembly_schema-39.1.30.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-24 00:25:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cdklabs",
"github_project": "cloud-assembly-schema",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "aws-cdk.cloud-assembly-schema"
}