
Why is cdk.out (Cloud Assembly) Necessary in AWS CDK?
What is cdk.out cdk.out is a directory that stores a collection of files called the cloud assembly. When you run the cdk synth command or the cdk deploy command, the cloud assembly is generated from your CDK code and stored in the cdk.out directory. What is the Cloud Assembly The cloud assembly is a collection of files generated by the synthesis of a CDK application (CDK code). The CDK CLI references this information to deploy resources to the AWS environment. In other words, the cloud assembly can be considered an intermediate artifact that CDK uses to deploy infrastructure definitions written in CDK code to the AWS environment. Components of the Cloud Assembly The cloud assembly primarily consists of the following files and directories: (stack name).template.json CloudFormation template generated by CDK code (stack name).assets.json File describing information about assets used in CDK code manifest.json File describing metadata of the cloud assembly tree.json File representing the Co
Continue reading on Dev.to
Opens in a new tab


