AWS CDK-CLI Commands

  1. cdk version #echo cdk command line version
  2. cdk init TEMPLATE — language LANGUAGE #create a new cdk stack
  3. cdk bootstrap #bootstrap the aws environment
  4. cdk list #list the stacks in cdk app
  5. cdk deploy #deploy a stack
  6. cdk destroy #delete the satck
  7. cdk doc #launch the cdk documents
  8. cdk diff #compares loacal and deployed stack
  9. cdk synth #generate cloudformation templates
  10. cdk deploy — profile PROFILE_NAME #you can specify aws profile within CLI
  11. cdk deploy STACK_NAME #you can specify a specific stack for action
  12. cdk deploy STACK_NAME1 STACK_NAME2 #you can specify multiple stacks to deploy
  13. cdk deploy “*” #you can perform action on all stacks in app
  14. cdk doctor #If you want to check your app for problems, you can run this command

--

--