[AWS] Install the AWS cli

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.

原文地址:https://www.cnblogs.com/Answer1215/p/5468638.html