Cheat Sheet
The commands you keep forgetting, with a one-line description and a real example you can copy - 629 across 38 tools. Pick a tool in the sidebar, or search across all of them.
Showing AWS CLI. Choose another tool in the sidebar, or search all 629 commands.
AWS CLI
Common AWS CLI commands for S3, EC2, IAM, and logs.
| Command | What it does | Example |
|---|---|---|
aws configure | Set up credentials and default region. | aws configure |
s3 ls | List buckets or objects. | aws s3 ls s3://my-bucket |
s3 cp | Copy a file to or from S3. | aws s3 cp build.zip s3://my-bucket/ |
s3 sync | Sync a folder to a bucket. | aws s3 sync ./dist s3://my-bucket |
sts get-caller-identity | Show which account/role you are. | aws sts get-caller-identity |
ec2 describe-instances | List EC2 instances. | aws ec2 describe-instances |
ec2 start-instances | Start a stopped instance. | aws ec2 start-instances --instance-ids i-0abc123 |
logs tail | Tail a CloudWatch log group live. | aws logs tail /aws/lambda/myfn --follow |
iam list-users | List IAM users. | aws iam list-users |
--profile | Use a named credentials profile. | aws s3 ls --profile prod |
--region | Override the region for one call. | aws ec2 describe-instances --region eu-west-1 |
--query / --output | Filter and format the output. | aws ec2 describe-instances --query 'Reservations[].Instances[].InstanceId' --output text |
ssm start-session | Shell into an instance without SSH. | aws ssm start-session --target i-0abc123 |