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 configure get aws_access_key_id
aws configure get aws_secret_access_key
aws sts get-caller-identity
참고
- https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/getting-started-install.html
728x90
'퍼블릭 클라우드' 카테고리의 다른 글
[aws] AWS CodeDeploy 사용법 (0) | 2022.08.19 |
---|---|
[aws] amazon Linux 2에 python 3.9를 설치하는 방법 (0) | 2022.08.16 |
[클라우드] CNCF Cloud Native Interactive Landscape (0) | 2022.07.19 |
[AWS] macOS에 Session Manager 플러그인 설치 및 제거 (0) | 2022.07.17 |
[AWS] AWS Session Manager를 사용하여 EC2(리눅스) 인스턴스에 연결 (0) | 2022.07.17 |