Back to CLI Index

AWS CLI

aws command line guide

Control your Amazon Web Services resources from the command-line. Manage buckets, instances, and serverless logs.

Interactive BASH Console Sandbox
aws-shell v1.2
Initializing cluster shell connection... [SUCCESS]
Type help to inspect all simulator diagnostics.
$ aws

Standard Commands Included

11 commands mapped
aws s3 ls S3 Storage

List all S3 buckets or folders inside a specified bucket path.

aws s3 ls s3://my-assets-bucket
aws s3 cp S3 Storage

Copy local files into S3 buckets or synchronize folders.

aws s3 cp photo.jpg s3://my-bucket/
aws s3 sync S3 Storage

Synchronize local folders and buckets by updating missing files.

aws s3 sync ./dist s3://my-bucket/dist
aws ec2 describe EC2 Compute

Retrieve lists of running instances and metadata parameters.

aws ec2 describe-instances --filters "Name=instance-state-name,Values=running"
aws ec2 start EC2 Compute

Start one or more EC2 server instances.

aws ec2 start-instances --instance-ids i-12345678
aws ec2 stop EC2 Compute

Stop one or more EC2 server instances.

aws ec2 stop-instances --instance-ids i-12345678
aws iam list IAM Security

List all IAM roles or active users within AWS account.

aws iam list-users
aws lambda list Lambda Serverless

List all serverless Lambda functions deployed in active region.

aws lambda list-functions
aws lambda invoke Lambda Serverless

Invoke a serverless Lambda function synchronously and output payload.

aws lambda invoke --function-name MyHandler output.txt
aws configure Setup

Configure your default regional parameters and credential access keys.

aws configure --profile custom-dev
aws sts get-caller Setup

Query caller account authentication profile keys.

aws sts get-caller-identity