eolas/zk/AWS_CLI.md
2024-03-05 17:40:03 +00:00

40 lines
484 B
Markdown

---
tags: [AWS]
---
# AWS CLI frequent commands
### Retrieve current user
```
aws-sts get-caller-identity
```
### List users
```
aws configure list
aws configure list-profiles
```
### View profile data
```
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