Aws Cli Cheat Sheet

05 Mar 2023 - Alejandro Piña

Basic AWS CLI bash commands used day to day

Cloudformation

Create/Delete/Update stack

aws cloudformation delete-stack --stack-name [name_of_stack]

aws cloudformation create-stack --stack-name depovs-tools --template-body file:///home/user/my/stack/path/[name_of_stack].yml --capabilities CAPABILITY_NAMED_IAM

aws cloudformation update-stack --stack-name depovs-tools --template-body file:///home/user/my/stack/path/[name_of_stack].yml

Note: CAPABILITY_NAMED_IAM and CAPABILITY_IAM are used if iam resources were defined in stack