# sample-app is a template name
# Note this must be run in the dir that also contains the .git stuff
# it will auto pick up any names from the dir name
cdk init sample-app --language typescript
synth
# makes a cdk.out dir
# makes the YAML and stuff
cdk synth
bootstrap
# makes an s3 bucket for your out
cdk bootstrap
init
# shoves all the stuff onto the cloud
cdk deploy
# just updates the code in a service
# NEVER USE IN PROD!!!
cdk deploy --hotswap
# When you save it uploads
# By default it hotswaps, to turn it off use: --no-hotswap
# In the cdk.json for a file to be tracked it must be in the include group
# and not in the exclude group
cdk watch
diff
# shows the diff
cdk diff
destroy
# most but not all things will be deleted such as storeage services and logs,
# change this by changing its RemovalPolicy
cdk destroy
# to destory a stack you will have to ls all stacks and manually delete each
cdk destroy stackName
ls
# lists out all stacks that cdk is aware of
cdk ls