diff --git a/zk/AWS_CLI.md b/zk/AWS_CLI.md index e290e53..c54a154 100644 --- a/zk/AWS_CLI.md +++ b/zk/AWS_CLI.md @@ -2,7 +2,7 @@ tags: [AWS] --- -# SAM frequent commands +# AWS CLI frequent commands ### Retrieve current user @@ -22,3 +22,19 @@ aws configure list-profiles ``` vim ./aws/credentials ``` + +## CloudFormation + +### List stacks + +``` +aws cloudformation --list-stacks +``` + +### Delete a stack + +``` +aws cloudformation delete-stack --stack-name --region +``` + +`region` is optional especially if only deployed to one region diff --git a/zk/SAM.md b/zk/SAM.md index cf5ec50..8333a1a 100644 --- a/zk/SAM.md +++ b/zk/SAM.md @@ -283,12 +283,3 @@ Gateway endpoint under `triggers`: We can then call this from Postman to check everything is working as it should: ![](/img/postman-aws-output.png) - -## Clean up and erase the stack - -We can delete the stack and remove all the resources we have created with a -single CLI method: - -```sh -aws cloudformation delete-stack --stack-name --region -```