AWS CDK-CLI Commands
Apr 13, 2022
- cdk version #echo cdk command line version
- cdk init TEMPLATE — language LANGUAGE #create a new cdk stack
- cdk bootstrap #bootstrap the aws environment
- cdk list #list the stacks in cdk app
- cdk deploy #deploy a stack
- cdk destroy #delete the satck
- cdk doc #launch the cdk documents
- cdk diff #compares loacal and deployed stack
- cdk synth #generate cloudformation templates
- cdk deploy — profile PROFILE_NAME #you can specify aws profile within CLI
- cdk deploy STACK_NAME #you can specify a specific stack for action
- cdk deploy STACK_NAME1 STACK_NAME2 #you can specify multiple stacks to deploy
- cdk deploy “*” #you can perform action on all stacks in app
- cdk doctor #If you want to check your app for problems, you can run this command