AWS CLI33 commands
AWS CLI Cheat Sheet
Essential AWS CLI commands for EC2, S3, IAM, Lambda, ECS, CloudFormation, and account management.
Configuration
| Command | Description |
|---|---|
| Set up access key, secret, and region |
| Show current config |
| Show current IAM identity |
| Configure named profile |
| Switch active profile |
S3
| Command | Description |
|---|---|
| List buckets |
| List objects in bucket |
| Upload file |
| Download file |
| Sync local dir to S3 |
| Delete object |
| Create bucket |
| Generate pre-signed URL |
EC2
| Command | Description |
|---|---|
| List all instances |
| Start instance |
| Stop instance |
| Terminate instance |
| List security groups |
| List VPCs |
IAM
| Command | Description |
|---|---|
| List IAM users |
| List IAM roles |
| Get current user details |
| List user policies |
| Create access key |
Lambda & ECS
| Command | Description |
|---|---|
| List Lambda functions |
| Invoke function |
| List ECS clusters |
| List services in cluster |
| Describe ECS task |
CloudFormation
| Command | Description |
|---|---|
| Deploy stack |
| List stacks |
| Delete stack |
| View stack events |