snippetbashTip
cdk — AWS Cloud Development Kit. More information: <https://docs.aws.amazon.com/cdk/latest/guide/cli.html>
Viewed 0 times
commandcloudcdkdevelopmentcliawsmorekit
Problem
How to use the
cdk command: AWS Cloud Development Kit. More information: <https://docs.aws.amazon.com/cdk/latest/guide/cli.html>.Solution
cdk — AWS Cloud Development Kit. More information: <https://docs.aws.amazon.com/cdk/latest/guide/cli.html>.List the stacks in the app:
cdk lsSynthesize and print the CloudFormation template for the specified stack(s):
cdk synth {{stack_name}}Deploy one or more stacks:
cdk deploy {{stack_name1 stack_name2 ...}}Destroy one or more stacks:
cdk destroy {{stack_name1 stack_name2 ...}}Compare the specified stack with the deployed stack or a local CloudFormation template:
cdk diff {{stack_name}}Create a new CDK project in the current directory for a specified language:
cdk init {{[-l|--language]}} {{language}}Open the CDK API reference in your browser:
cdk docsCode Snippets
List the stacks in the app
cdk lsSynthesize and print the CloudFormation template for the specified stack(s)
cdk synth {{stack_name}}Deploy one or more stacks
cdk deploy {{stack_name1 stack_name2 ...}}Destroy one or more stacks
cdk destroy {{stack_name1 stack_name2 ...}}Compare the specified stack with the deployed stack or a local CloudFormation template
cdk diff {{stack_name}}Context
tldr-pages: common/cdk
Revisions (0)
No revisions yet.