Install

Download and install CLI tool from AWS site, Install AWS CLI (choose your operating system section and follow instructions to install it)

Configure It's important that you store this key pair details in a safe place and keep them as secret.

Once you have the key pair, then you can run one of the below aws configure command to configure it.

$ aws configure AWS Access Key ID [None]: <Enter your access key id> AWS Secret Access Key [None]: <Enter your secret access key> Default region name [None]: <Enter an AWS region that you want to be default, for e.g. us-east-1> Default output format [None]: <Format of output that you want to see, for e.g. json or text etc.>

You can also pass key pair as file argument, but you need add User Name column in addition to Access key ID and Secret access key. So the file looks like this.

User Name Access key ID Secret access key
<user name> <access key id what you have downloaded> <secret access key what you have downloaded>
$ aws configure import --csv file://"path/to/credentials.csv" Successfully imported 1 profile(s)

AWS CLI commands normally follow the pattern aws <service name> <service specific commands>. For example aws iam create-user --user-name <value>, this sends a command to IAM (Identity Access Management) service to create an user with the specified user name.

Full list of AWS CLI commands reference can be found here https://docs.aws.amazon.com/cli/latest/reference/.