AWS CLI

์ž๊พธ ์žŠ์–ด์„œ ์ ์–ด๋†“๊ธฐ...

Docs

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?