100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace

AWS CLI Cheat Sheet

AWS CLI Cheat Sheet

AWS CLI commands for S3, EC2, Lambda, IAM, and other core services.

3 PagesIntermediateApr 30, 2026

S3

Object storage commands.

bash
aws s3 ls                              # List bucketsaws s3 cp file.txt s3://my-bucket/     # Uploadaws s3 sync ./dist s3://my-bucket/     # Sync a folderaws s3 rm s3://my-bucket/file.txt      # Delete object

EC2

Compute instance commands.

bash
aws ec2 describe-instancesaws ec2 start-instances --instance-ids i-0abc123aws ec2 stop-instances --instance-ids i-0abc123

Lambda

Serverless function commands.

bash
aws lambda invoke --function-name myFunc out.jsonaws lambda update-function-code \  --function-name myFunc --zip-file fileb://code.zip

IAM

Identity and access management.

bash
aws iam list-usersaws iam create-user --user-name newuseraws iam attach-user-policy --user-name newuser \  --policy-arn arn:aws:iam::aws:policy/ReadOnlyAccess
Pro Tip

Configure named profiles (aws configure --profile name) to safely switch between multiple AWS accounts.

Was this cheat sheet helpful?

Explore Topics

#AWSCLI#AWSCLICheatSheet#CloudComputing#Intermediate#EC2#Lambda#IAM#AWS#Functions#CommandLine#CheatSheet#SkillVeris
Advertisement
Sri Hayavadhana Info-Tech

Professional Web Designing Services

  • Responsive Websites
  • E-commerce Solutions
  • SEO Friendly Design
  • Fast & Secure
  • Support & Maintenance
Get a Free Quote

Share this Cheat Sheet