Reference

Cheat Sheet

The commands you keep forgetting, with a one-line description and a real example you can copy - 384 across 26 tools. Pick a tool in the sidebar, or search across all of them.

AWS CLI

Common AWS CLI commands for S3, EC2, IAM, and logs.
CommandWhat it doesExample
aws configureSet up credentials and default region.aws configure
s3 lsList buckets or objects.aws s3 ls s3://my-bucket
s3 cpCopy a file to or from S3.aws s3 cp build.zip s3://my-bucket/
s3 syncSync a folder to a bucket.aws s3 sync ./dist s3://my-bucket
sts get-caller-identityShow which account/role you are.aws sts get-caller-identity
ec2 describe-instancesList EC2 instances.aws ec2 describe-instances
ec2 start-instancesStart a stopped instance.aws ec2 start-instances --instance-ids i-0abc123
logs tailTail a CloudWatch log group live.aws logs tail /aws/lambda/myfn --follow
iam list-usersList IAM users.aws iam list-users
--profileUse a named credentials profile.aws s3 ls --profile prod
--regionOverride the region for one call.aws ec2 describe-instances --region eu-west-1
--query / --outputFilter and format the output.aws ec2 describe-instances --query 'Reservations[].Instances[].InstanceId' --output text
ssm start-sessionShell into an instance without SSH.aws ssm start-session --target i-0abc123