AWS CLI Commands Cheat Sheet Created by Gursimran Singh Configuration: - aws configure: Configure access credentials and default region S3 (Simple Storage Service): - aws s3 ls: List S3 buckets - aws s3 mb s3://bucket-name: Make new bucket - aws s3 cp file.txt s3://bucket-name/: Copy file to bucket - aws s3 sync ./local-dir s3://bucket-name/: Sync local directory to bucket EC2 (Elastic Compute Cloud): - aws ec2 describe-instances: List EC2 instances - aws ec2 start-instances --instance-ids i-1234567890abcdef0: Start instance - aws ec2 stop-instances --instance-ids i-1234567890abcdef0: Stop instance - aws ec2 terminate-instances --instance-ids i-1234567890abcdef0: Terminate instance IAM (Identity and Access Management): - aws iam list-users: List IAM users - aws iam create-user --user-name username: Create user - aws iam delete-user --user-name username: Delete user Lambda: - aws lambda list-functions: List Lambda functions - aws lambda invoke --function-name function-name outfile.txt: Invoke Lambda function CloudFormation: - aws cloudformation create-stack --stack-name name --template-body file://template.yaml: Create stack - aws cloudformation delete-stack --stack-name name: Delete stack Other Useful Commands: - aws sts get-caller-identity: Show IAM identity info - aws logs describe-log-groups: List