Tutorial by Examples

There are a number of different ways to install the AWS CLI on your machine, depending on what operating system and environment you are using: On Microsoft Windows – use the MSI installer. On Linux, OS X, or Unix – use pip (a package manager for Python software) or install manually with the bundle...
To setup a new credential profile with the name myprofile: $ aws configure --profile myprofile AWS Access Key ID [None]: ACCESSKEY AWS Secret Access Key [None]: SECRETKEY Default region name [None]: REGIONNAME Default output format [None]: text | table | json For the AWS access key id and se...
The syntax for using the aws cli is as follows: aws [options] <command> <subcommand> [parameters] Some examples using the 'ec2' command and the 'describe-instances' subcommand: aws ec2 describe-instances aws ec2 describe-instances --instance-ids <your-id> Example with a ...
aws s3 ls Use a named profile aws --profile myprofile s3 ls List all objects in a bucket, including objects in folders, with size in human-readable format and a summary of the buckets properties in the end - aws s3 ls --recursive --summarize --human-readable s3://<bucket_name>/
The following utility can be used for auto-completion of commands: $ which aws_completer /usr/bin/aws_completer $ complete -C '/usr/bin/aws_completer' aws For future shell sessions, consider add this to your ~/.bashrc $ echo "complete -C '/usr/bin/aws_completer' aws" >> ~/.b...
Setup Install AWS CLI AWS CLI is an common CLI tool for managing the AWS resources. With this single tool we can manage all the aws resources sudo apt-get install -y python-dev python-pip sudo pip install awscli aws --version aws configure Bash one-liners cat <file> # output a file ...

Page 1 of 1