Introduction to AWS Command Line Interface (CLI)

(只提供英文版本)

Big Data – Blog by YY

Introduction to AWS Command Line Interface (CLI)

Today, I will demo the basic operations over the amazing tool from AWS, named AWS CLI.

It eliminates the burdens of access to AWS console back and forth and still provide users functionality for manipulating over AWS services like the behavior what you might get used to before.

 

Reference:

        http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html

 

Requirement:

Python 2.6+ or Python 3.3+

Windows, Linux, maxOS or Unix

 

Installation:

For macOS/Linux:

pip install awscli ( Optional: –upgrade –user )

For Windows:

                http://docs.aws.amazon.com/cli/latest/userguide/awscli-install-windows.html

 

 

 

 

 

After installation, do version checking:

Useful command:

–       aws help, print out help info to the console.

–       aws ls, list all available services aws cli provides.

 

Once installed successfully, configure accessKey & secretKey for making aws cli in recognition.

–       aws configure –profile ProfileName

 

 

 

 

 

 

 

 

( Optional –profile, if not set, the info you current input will be set as DEFAULT )

Region Name can be referenced:

        http://docs.aws.amazon.com/general/latest/gr/rande.html

 

Format can be either json or text

Once you are all set, next time, you can manipulate services directly via AWS CLI, instead of typing userName & passWD on web console next time.

 

Posted in ICG日志.