Skip to content

AWS CDK Commands

The AWS Cloud Development Kit (CDK) comes with a list of commands that you need to know:

cdk list (ls)Lists the stacks in the app
cdk synthesize (synth)Synthesizes and prints the CloudFormation template for the specified stack(s)
cdk bootstrapDeploys the CDK Toolkit staging stack; see Bootstrapping
cdk deployDeploys the specified stack(s)
cdk destroyDestroys the specified stack(s)
cdk diffCompares the specified stack with the deployed stack or a local CloudFormation template
cdk metadataDisplays metadata about the specified stack
cdk initCreates a new CDK project in the current directory from a specified template
cdk contextManages cached context values
cdk docs (doc)Opens the CDK API reference in your browser
cdk doctorChecks your CDK project for potential problems

You can learn more about the CDK here: https://docs.aws.amazon.com/cdk/v2/guide/cli.html

See also  How to provide Default Values for AWS CloudFormation Parameters
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x