DEV Community

Said Olano
Said Olano

Posted on

how to setup aws cli

In your browser, download the macOS pkg file: https://awscli.amazonaws.com/AWSCLIV2.pkg

Once installed, then:

Image description

Again:

Image description

Finally, go to your AWS account and link your AWS account with your terminal (Mac OS):

1.- Click on upper right side to your user name, expand and click on Security Credentials

Image description

2.- At this screen, click on create access key.

Image description

3.- Accept the message and proceed to create the key:

Image description

4.- You will receive a windows like this one:

Image description

5.- Download the .csv file:

Image description

6.- If you open the file, you will see something like this:

Image description

7.- Now, we have to configure our AWS CLI instance from our terminal, to link it with our AWS Account. Run the aws configure command:
7.1.- At the output format, please type json (lowercase):

Image description

8.- This generates the ./aws directory with the given configuration:

Image description

Image description

9.- Test anything only to evaluate we can access to our aws account:

Image description

Top comments (0)