AWS CLI $PATH Settings

后端 未结 14 2383
悲&欢浪女
悲&欢浪女 2021-01-30 04:50

I am following the AWS CLI Setup guide. I have managed to successfully install the tool on my Mac OS X terminal with the following output:

Running cmd: /usr/bin/         


        
14条回答
  •  没有蜡笔的小新
    2021-01-30 05:16

    Make sure python is installed globally, The steps are like this:

    On AWS side:

    Go to amazon AWS center -> Services -> Identity and Access Management (IAM) -> Users -> find your User and click on it -> pick Security Credentials tab -> create Access Key

    Installation: On command line / bash

    curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
    unzip awscliv2.zip
    sudo ./aws/install
    

    Optional: if aws version is not found yet ,set up the aws path on your bash profile.

    vim ~/.bash_profile
    #paste this line
    PATH=$PATH:/usr/local/bin/aws
    

    Configuration:(Final Step) Configure your credentials as following

    aws configure
    

    Fill in the properties you got from aws website and connect your account. attaching an example for this step.

    AWS Access Key ID [None]: abcd

    AWS Secret Access Key [None]: zyx123!@#

    Default region> name [None]: us-east-1

    Default output format [None]: json

    Good Luck!

提交回复
热议问题