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.
Open a terminal window and run
aws configure to set up your environment.
$ aws configure
Type the access key ID and secret key you created in the previous step and choose a default region (for example you can
us-east-1). Preferably use a region that doesn’t have any resources already deployed into it.
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>