Skip to content

AWS

Basics

Command Description
aws configure configure the AWS CLI
aws help display help for AWS CLI commands and options
aws version display the version of the AWS CLI
aws sts get-caller-identity display information about the AWS account

EC2

Command Description
aws ec2 run-instances launch EC2 instances
aws ec2 stop-instances stop EC2 instances
aws ec2 start-instances start stopped EC2 instances
aws ec2 terminate-instances terminate EC2 instances
aws ec2 describe-instances describe EC2 instances

S3

Command Description
aws s3 ls list S3 buckets or objects in a bucket
aws s3 cp copy files to/from S3 buckets or objects
aws s3 mb create an S3 bucket
aws s3 rb delete an S3 bucket
aws s3 sync sync files to/from S3 buckets or objects

IAM

Command Description
aws iam create-user create an IAM user
aws iam create-group create an IAM group
aws iam create-policy create an IAM policy
aws iam attach-user-policy attach a policy to an IAM user
aws iam attach-group-policy attach a policy to an IAM group

CloudFormation

Command Description
aws cloudformation create-stack create a CloudFormation stack
aws cloudformation delete-stack delete a CloudFormation stack
aws cloudformation describe-stacks describe CloudFormation stacks
aws cloudformation validate-template validate a CloudFormation template
aws cloudformation update-stack update a CloudFormation stack

Lambda

Command Description
aws lambda create-function create a Lambda function
aws lambda delete-function delete a Lambda function
aws lambda invoke invoke a Lambda function
aws lambda list-functions list Lambda functions
aws lambda update-function-code update a Lambda function's code

Advanced

Command Description
aws configure set set configuration values for the AWS CLI
aws ssm send-command send a command to an EC2 instance using Systems Manager
aws ecs run-task run a task on an ECS cluster
aws rds create-db-instance create an RDS instance
aws ssm start-session start an interactive session with an EC2 instance using Systems Manager