본문 바로가기

퍼블릭 클라우드

[aws] 최신 버전의 AWS CLI(aws-cli) 설치

728x90

aws 최신 버전의 AWS CLI(aws-cli) 설치

curl -s "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
> sudo installer -pkg AWSCLIV2.pkg -target /
Password:
installer: Package name is AWS Command Line Interface
installer: Installing at base path /
installer: The install was successful.
which aws
> which aws
/usr/local/bin/aws
aws --version
> aws --version
aws-cli/2.7.17 Python/3.9.11 Darwin/20.6.0 exe/x86_64 prompt/off

AWS Access Key/AWS Secret Access Key 등록

aws configure
> aws configure
AWS Access Key ID [None]: AKIAT
AWS Secret Access Key [None]: lk0ja
Default region name [None]: ap-northeast-2
Default output format [None]: json

AWS Access Key/AWS Secret Access Key 확인

aws configure list
> aws configure list
      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                <not set>             None    None
access_key     ****************XD5I shared-credentials-file
secret_key     ****************RjjR shared-credentials-file
    region           ap-northeast-2      config-file    ~/.aws/config

aws-cli.pdf
0.41MB

 

참고

- https://sangchul.kr/190

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

 

728x90