Install the AWS CLI

The AWS CLI allows you to interact with AWS services from a terminal session. Make sure you have the latest version of the AWS CLI installed on your system.

See the AWS Command Line Interface installation page for more details.

Configure your credentials

Open a terminal window and use aws configure to set up your environment. Type the Access key ID and Secret access key and choose a default region (e.g. us-east-1, eu-west-1, us-west-2).

aws configure

And fill in the information from the console:

AWS Access Key ID [None]: <type key ID here>
AWS Secret Access Key [None]: <type access key>
Default region name [None]: <choose region (e.g. "us-east-1", "eu-west-1")>
Default output format [None]: <leave blank>