AWS CLI

AWS Command Line Interface for managing AWS services

53 commands
Search & Copy
Save Favorites
53
Total Commands
100%
Free Access
Lightning Fast

Available Commands

Click on any command to copy it instantly

53 commands available
53 of 53
Resources

Master AWS CLI

Become proficient in AWS Command Line Interface

aws

Configure AWS CLI

Configure AWS CLI credentials

aws configure
aws
configure
credentials
aws

List S3 Buckets

List S3 buckets

aws s3 ls
aws
s3
list
aws

Make S3 Bucket

Create a new S3 bucket

aws s3 mb s3://my-bucket
aws
s3
bucket
+1 more
aws

Remove from S3

Delete files from S3

aws s3 rm s3://my-bucket/file.txt
aws
s3
remove
+1 more
aws

Sync Local to S3

Sync local directory to S3 bucket

aws s3 sync ./local-dir s3://my-bucket
aws
s3
sync
aws

Describe EC2 Instances

List EC2 instances

aws ec2 describe-instances
aws
ec2
instances
aws

Start EC2 Instance

Start an EC2 instance

aws ec2 start-instances --instance-ids i-1234567890abcdef0
aws
ec2
start
aws

Stop EC2 Instance

Stop an EC2 instance

aws ec2 stop-instances --instance-ids i-1234567890abcdef0
aws
ec2
stop
aws

Reboot EC2 Instance

Reboot an EC2 instance

aws ec2 reboot-instances --instance-ids i-1234567890abcdef0
aws
ec2
reboot
aws

Terminate EC2 Instance

Terminate an EC2 instance

aws ec2 terminate-instances --instance-ids i-1234567890abcdef0
aws
ec2
terminate
+1 more
aws

Run EC2 Instance

Launch a new EC2 instance

aws ec2 run-instances --image-id ami-12345678 --count 1 --instance-type t2.micro
aws
ec2
launch
+1 more
aws

List Security Groups

List EC2 security groups

aws ec2 describe-security-groups
aws
ec2
security-groups
aws

List IAM Users

List IAM users

aws iam list-users
aws
iam
users
aws

Create IAM User

Create an IAM user

aws iam create-user --user-name newuser
aws
iam
create
+1 more
aws

Delete IAM User

Delete an IAM user

aws iam delete-user --user-name newuser
aws
iam
delete
+1 more
aws

List IAM Groups

List IAM groups

aws iam list-groups
aws
iam
groups
aws

List IAM Roles

List IAM roles

aws iam list-roles
aws
iam
roles
aws

List CloudWatch Log Groups

List CloudWatch log groups

aws logs describe-log-groups
aws
logs
cloudwatch
aws

List CloudWatch Log Streams

List CloudWatch log streams

aws logs describe-log-streams --log-group-name my-group
aws
logs
streams
aws

Get CloudWatch Logs

Get log events

aws logs get-log-events --log-group-name my-group --log-stream-name my-stream
aws
logs
get
aws

List Lambda Functions

List Lambda functions

aws lambda list-functions
aws
lambda
functions
aws

Invoke Lambda Function

Invoke a Lambda function

aws lambda invoke --function-name my-function out.json
aws
lambda
invoke
aws

List DynamoDB Tables

List DynamoDB tables

aws dynamodb list-tables
aws
dynamodb
tables
aws

Put Item in DynamoDB

Insert item into DynamoDB

aws dynamodb put-item --table-name mytable --item '{"id":{"S":"1"},"name":{"S":"test"}}'
aws
dynamodb
insert
aws

Get Item from DynamoDB

Retrieve item from DynamoDB

aws dynamodb get-item --table-name mytable --key '{"id":{"S":"1"}}'
aws
dynamodb
get
aws

List CloudFormation Stacks

List CloudFormation stacks

aws cloudformation describe-stacks
aws
cloudformation
stacks
aws

Create CloudFormation Stack

Create a new CloudFormation stack

aws cloudformation create-stack --stack-name mystack --template-body file://template.json
aws
cloudformation
create
aws

Delete CloudFormation Stack

Delete a CloudFormation stack

aws cloudformation delete-stack --stack-name mystack
aws
cloudformation
delete
aws

List ECR Repositories

List ECR repositories

aws ecr describe-repositories
aws
ecr
repositories
aws

ECR Login

Authenticate Docker to ECR

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin <account-id>.dkr.ecr.us-east-1.amazonaws.com
aws
ecr
login
+1 more
aws

List VPCs

List all VPCs in account

aws ec2 describe-vpcs
aws
ec2
vpc
aws

List Subnets

List all subnets in a VPC

aws ec2 describe-subnets
aws
ec2
subnets
aws

List RDS Instances

List RDS database instances

aws rds describe-db-instances
aws
rds
databases
aws

Start RDS Instance

Start an RDS DB instance

aws rds start-db-instance --db-instance-identifier mydb
aws
rds
start
aws

Stop RDS Instance

Stop an RDS DB instance

aws rds stop-db-instance --db-instance-identifier mydb
aws
rds
stop
aws

List CloudFront Distributions

List CloudFront distributions

aws cloudfront list-distributions
aws
cloudfront
cdn
aws

Invalidate CloudFront Cache

Invalidate objects in CloudFront cache

aws cloudfront create-invalidation --distribution-id DIST_ID --paths "/*"
aws
cloudfront
invalidate
+1 more
aws

List Route53 Hosted Zones

List hosted zones in Route53

aws route53 list-hosted-zones
aws
route53
dns
aws

List Route53 Records

List DNS records in a zone

aws route53 list-resource-record-sets --hosted-zone-id ZONEID
aws
route53
records
aws

List EKS Clusters

List Amazon EKS clusters

aws eks list-clusters
aws
eks
kubernetes
aws

Describe EKS Cluster

Describe an EKS cluster

aws eks describe-cluster --name mycluster
aws
eks
describe
aws

List ECS Clusters

List ECS clusters

aws ecs list-clusters
aws
ecs
containers
aws

List ECS Services

List services in an ECS cluster

aws ecs list-services --cluster mycluster
aws
ecs
services
aws

List ECS Tasks

List tasks running in ECS cluster

aws ecs list-tasks --cluster mycluster
aws
ecs
tasks
aws

List Secrets

List secrets in AWS Secrets Manager

aws secretsmanager list-secrets
aws
secrets
secretsmanager
aws

Get Secret Value

Retrieve a secret from AWS Secrets Manager

aws secretsmanager get-secret-value --secret-id mysecret
aws
secrets
get
aws

List KMS Keys

List AWS KMS keys

aws kms list-keys
aws
kms
keys
aws

Describe KMS Key

Describe a specific KMS key

aws kms describe-key --key-id KEYID
aws
kms
describe
aws

List SQS Queues

List Amazon SQS queues

aws sqs list-queues
aws
sqs
queues
aws

Send SQS Message

Send a message to SQS queue

aws sqs send-message --queue-url URL --message-body "hello"
aws
sqs
send
aws

Receive SQS Message

Receive messages from SQS queue

aws sqs receive-message --queue-url URL
aws
sqs
receive
aws

List SNS Topics

List Amazon SNS topics

aws sns list-topics
aws
sns
topics
aws

Publish SNS Message

Publish a message to an SNS topic

aws sns publish --topic-arn ARN --message "hello"
aws
sns
publish

Missing a command?

Help us improve this collection by suggesting commands that should be added. Your contributions help the entire developer community!