AWS CLI
์๊พธ ์์ด์ ์ ์ด๋๊ธฐ...
What is the AWS Command Line Interface?
Command-line shell ์ ์ฌ์ฉํ์ฌ AWS ์๋น์ค์ ์ํธ์์ฉํ ์ ์๋ open source tool
AWS CLI๋ฅผ ์ฌ์ฉํ๋ฉด minimal configuration์ผ๋ก ์ํ๋ terminal program ์์ browser๊ธฐ๋ฐ AWS Management console์์ ์ ๊ณตํ๋ ๊ฒ๊ณผ ๋์ผํ ๊ธฐ๋ฅ์ ๊ตฌํํ๋ ๋ช ๋ น์ ์คํํ ์ ์๋ค
Linux shells
bash, zsh, tcsh ๋ฑ์ ์ผ๋ฐ์ ์ธ shell program์ ์ฌ์ฉํ์ฌ Linux ๋๋ MacOS ์์ ๋ช ๋ น ์คํ
Windows command line
Windows์์๋ Powershell ๋๋ Windows command prompt ๋ฅผ ์ฌ์ฉํ์ฌ ๋ช ๋ น ์คํ
Remotely
PuTTY, SSH ๋ฑ์ ์๊ฒฉ ํฐ๋ฏธ๋ ํ๋ก๊ทธ๋จ ๋๋ AWS Systems Manager ๋ฅผ ํตํด EC2 instance์์ ๋ช ๋ น ์คํ
Installing the AWS CLI version 2 on Linux
1. Download the installation file
curl
๋ช ๋ น์ด ์ฌ์ฉ
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
2. Unzip the installer
unzip awscliv2.zip
3. Run the install program
sudo ./aws/install
4. Confirm the installation
chloe@chloe-XPS-15-9570 ~
$ aws --version
aws-cli/2.0.19 Python/3.7.3 Linux/5.3.0-61-generic botocore/2.0.0dev23
Configuring the AWS CLI
configure
$ aws configure get aws_access_key_id
default_access_key
$ aws configure get default.aws_access_key_id
default_access_key
$ aws configure get aws_access_key_id --profile testing
testing_access_key
$ aws configure get profile.testing.aws_access_key_id
testing_access_key
ex)
region ํ์ธํด๋ณด๊ธฐ
chloe@chloe-XPS-15-9570 ~/Workspace/kendra-button/frontend/kendra-button-front
$ aws configure get region
us-west-2
Last updated
Was this helpful?