[AWS] Install the AWS cli

时间:2023-07-02 11:26:19

On Windows, just download the installer and install it.

Configure:

aws configure

In your aws console:

  • go to Security Credentials tab
  • Access Keys (Access Key ID and Secret Access Key) drop dwon --> Create new access key if you havn't
  • So now you get Access Key and Sercet Access Key
  • TO get region: go to EC2, check the url: us-west-2
    https://us-west-2.console.aws.amazon.com/ec2/v2/home?region=us-west-2#
  • Ouptu format: ['table', 'text', 'json'], we choose json

Test:

aws ec2 describe-instances

You will able to see the es2 instances if you have.