DEV Community

Souleymane. Tiendrebeogo
Souleymane. Tiendrebeogo

Posted on

1

Install and configure AWS cli on Windows machine

There are 2 ways of installing aws cli on your Windows machine .

1-The long and boring way

Go to AWS official page , download the .msi file and the follow the instructions (click, click, click) just like you would normally install a normal software on your Windows machine.

2- Quick and easy through the cli

Make sure that you have chocolatey installed . Click here to learn how to install it
Launch PowerShell and run it as administrator and run the command bellow

 choco install awscli 
Enter fullscreen mode Exit fullscreen mode

After that you can check your cli version with the command bellow

 aws --version
Enter fullscreen mode Exit fullscreen mode

Image description

Configure your AWS CLI to connect to your AWS console

  • Log into your aws account
  • Head to AIM
  • Head to users
  • Select a user
  • Head to security credential tab and create and access key . Make sure to keep them safe

Now lets configure the cli

aws configure 
Enter fullscreen mode Exit fullscreen mode

Enter your Access key ID and your Secret access key that you previously downloaded
AWS Access Key ID [*************************]
AWS Secret Access Key [
*************************]
Default region name [ us-west-2]
Default output format [json]:json
Now you are good to go . To make sure lets check
aws iam list-users

If we get the users information as show in our aws console , that means the configuration is successful and now we can interact with our aws account from the cli.

Cheers!
Follow me on twiter @asksouley
Check my website : www.asksouley.com

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more