woonizzooni

AWS CLI 구성 (MacOS) 본문

AWS

AWS CLI 구성 (MacOS)

woonizzooni 2020. 3. 29. 23:52

 

AWS CLI 설치

https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/install-cliv1.html

$ pip3 install awscli --upgrade --user
  Collecting awscli
    Downloading https://files.pythonhosted.org/packages/8e/6d/2c212d8646f093e73d505c1b20605588c048c3d1935cc7a08423544ca5e5/awscli-1.18.31-py2.py3-none-any.whl (3.0MB)
       |████████████████████████████████| 3.0MB 716kB/s
  ....
  Successfully installed PyYAML-5.3.1 awscli-1.18.31 botocore-1.15.31 colorama-0.4.3 docutils-0.15.2 jmespath-0.9.5 pyasn1-0.4.8 python-dateutil-2.8.1 rsa-3.4.2 s3transfer-0.3.3
  
  
$ which aws                                                                                                                                        ✔  16973  23:30:38
  /Users/myname/Library/Python/3.7/bin/aws
  
$ aws --version                                                                                                                                    ✔  16974  23:30:40
  aws-cli/1.18.31 Python/3.7.6 Darwin/19.4.0 botocore/1.15.31
  

혹은 아래와 같이 설치.

$ python3 pip install awscli

   ....

$ which aws

   /usr/local/bin/aws

 

 

AWS configure

https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/cli-chap-configure.html 

- Access key / Secret Access key 등을 아래와 같이 입력

$ aws configure
  AWS Access Key ID [xxxx]: aabb
  AWS Secret Access Key [xxxx]: aabb
  Default region name [xxxxx]: aaaa
  Default output format [None]: json

 

Comments