Autosave: 2024-03-05 17:40:03
This commit is contained in:
parent
31cc26249c
commit
846ce881bf
2 changed files with 17 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
||||||
tags: [AWS]
|
tags: [AWS]
|
||||||
---
|
---
|
||||||
|
|
||||||
# SAM frequent commands
|
# AWS CLI frequent commands
|
||||||
|
|
||||||
### Retrieve current user
|
### Retrieve current user
|
||||||
|
|
||||||
|
@ -22,3 +22,19 @@ aws configure list-profiles
|
||||||
```
|
```
|
||||||
vim ./aws/credentials
|
vim ./aws/credentials
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## CloudFormation
|
||||||
|
|
||||||
|
### List stacks
|
||||||
|
|
||||||
|
```
|
||||||
|
aws cloudformation --list-stacks
|
||||||
|
```
|
||||||
|
|
||||||
|
### Delete a stack
|
||||||
|
|
||||||
|
```
|
||||||
|
aws cloudformation delete-stack --stack-name <my_stack> --region <region>
|
||||||
|
```
|
||||||
|
|
||||||
|
`region` is optional especially if only deployed to one region
|
||||||
|
|
|
@ -283,12 +283,3 @@ Gateway endpoint under `triggers`:
|
||||||
We can then call this from Postman to check everything is working as it should:
|
We can then call this from Postman to check everything is working as it should:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## 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 <name> --region <region>
|
|
||||||
```
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue