A A
[AWS] AWS ์ ‘์† ๋ฐฉ๋ฒ• ๋ฐ AWS SDK & CLI

AWS์— ์ ‘๊ทผํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ์„ธ ๊ฐ€์ง€๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

  • AWS Management Console (๋น„๋ฐ€๋ฒˆํ˜ธ + MFA๋กœ ๋ณดํ˜ธ๋จ)
  • AWS Command Line Interface (CLI): Access Keys๋กœ ๋ณดํ˜ธ๋จ
  • AWS Software Development Kit (SDK) - ์ฝ”๋“œ์šฉ: Access Keys๋กœ ๋ณดํ˜ธ๋จ

Access Keys ๊ด€๋ฆฌ

Access Keys๋Š” AWS ์„œ๋น„์Šค์— ํ”„๋กœ๊ทธ๋žจ ๋ฐฉ์‹์œผ๋กœ ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•ด์ฃผ๋Š” ์ค‘์š”ํ•œ ์ž๊ฒฉ ์ฆ๋ช…์ž…๋‹ˆ๋‹ค. Access Keys๋Š” AWS Console์„ ํ†ตํ•ด ์ƒ์„ฑ๋˜๋ฉฐ, ์‚ฌ์šฉ์ž๋“ค์€ ์ž์‹ ์˜ Access Keys๋ฅผ ์‹ ์ค‘ํ•˜๊ฒŒ ๊ด€๋ฆฌํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. Access Keys๋Š” ๋น„๋ฐ€๋ฒˆํ˜ธ์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ๋น„๋ฐ€์Šค๋Ÿฌ์šด ์ •๋ณด์ด๋ฏ€๋กœ, ์ด๋ฅผ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๊ณผ ๊ณต์œ ํ•˜์ง€ ๋งˆ์„ธ์š”.

  • Access Key ID: ์‚ฌ์šฉ์ž ์ด๋ฆ„(username)๊ณผ ์œ ์‚ฌํ•œ ์—ญํ• ์„ ํ•ฉ๋‹ˆ๋‹ค.
  • Secret Access Key: ๋น„๋ฐ€๋ฒˆํ˜ธ(password)์™€ ์œ ์‚ฌํ•œ ์—ญํ• ์„ ํ•ฉ๋‹ˆ๋‹ค.

์˜ˆ์‹œ (Fake) Access Keys

  • Access Key ID: AKIASK4E37PV4983d6C
  • Secret Access Key: AZPN3zojWozWCndIjhB0Unh8239a1bzbzO5fqqkZq
Remember: Access Keys๋Š” ์ ˆ๋Œ€ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๊ณผ ๊ณต์œ ํ•˜์ง€ ๋งˆ์„ธ์š”.

What’s the AWS CLI?

CLI๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด AWS ์„œ๋น„์Šค์˜ ๊ณต์šฉ API๋กœ ์ง์ ‘ ์•ก์„ธ์Šค๊ฐ€ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. CLI๋ฅผ ํ†ตํ•ด ๋ฆฌ์†Œ์Šค๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๊ฐœ๋ฐœํ•ด ์ผ๋ถ€ ์ž‘์—…์„ ์ž๋™ํ™”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

Command Line Interface - AWS CLI - AWS

aws-shell์€ ๋ช…๋ น์ค„ ์…ธ ํ”„๋กœ๊ทธ๋žจ์œผ๋กœ์„œ, AWS ๋ช…๋ น์ค„ ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ƒˆ๋กœ์šด ์‚ฌ์šฉ์ž์™€ ๊ณ ๊ธ‰ ์‚ฌ์šฉ์ž ๋ชจ๋‘์—๊ฒŒ ๋„์›€์ด ๋˜๋Š” ํŽธ์˜ ๊ธฐ๋Šฅ ๋ฐ ์ƒ์‚ฐ์„ฑ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์ฃผ์š” ๊ธฐ๋Šฅ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต

aws.amazon.com

AWS CLI๋ž€ ๋ฌด์—‡์ธ๊ฐ€์š”?

  • AWS CLI๋Š” ๋ช…๋ น์ค„ ์…ธ์—์„œ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•ด AWS ์„œ๋น„์Šค๋ฅผ ์ƒํ˜ธ์ž‘์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” ๋„๊ตฌ์ž…๋‹ˆ๋‹ค.
  • AWS ์„œ๋น„์Šค์˜ ๊ณต๊ฐœ API์— ์ง์ ‘ ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ๋ฆฌ์†Œ์Šค๋ฅผ ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๊ฐœ๋ฐœํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ์˜คํ”ˆ ์†Œ์Šค๋กœ ์ œ๊ณต๋˜๋ฉฐ, GitHub์—์„œ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค
 

GitHub - aws/aws-cli: Universal Command Line Interface for Amazon Web Services

Universal Command Line Interface for Amazon Web Services - aws/aws-cli

github.com

  • AWS Management Console์˜ ๋Œ€์•ˆ์œผ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

What’s the AWS SDK?

์ถœ์ฒ˜: AWS SDK ์†Œ๊ฐœ ํŽ˜์ด์ง€

 

SDK๋ž€ ๋ฌด์—‡์ธ๊ฐ€์š”? - SDK ์„ค๋ช… - AWS

์†Œํ”„ํŠธ์›จ์–ด ๊ฐœ๋ฐœ ํ‚คํŠธ(SDK)๋Š” ๊ฐœ๋ฐœ์ž๋ฅผ ์œ„ํ•œ ํ”Œ๋žซํผ๋ณ„ ๊ตฌ์ถ• ๋„๊ตฌ ์„ธํŠธ์ž…๋‹ˆ๋‹ค. ํŠน์ • ํ”Œ๋žซํผ, ์šด์˜ ์ฒด์ œ ๋˜๋Š” ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด์—์„œ ์‹คํ–‰๋˜๋Š” ์ฝ”๋“œ๋ฅผ ๋งŒ๋“ค๋ ค๋ฉด ๋””๋ฒ„๊ฑฐ, ์ปดํŒŒ์ผ๋Ÿฌ ๋ฐ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์™€ ๊ฐ™

aws.amazon.com

 

AWS ์„œ๋น„์Šค๋‚˜ API์— ํ”„๋กœ๊ทธ๋ž˜๋ฐ์„ ์œ„ํ•œ ์•ก์„ธ์Šค๊ฐ€ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ SDK๋Š” ํ„ฐ๋ฏธ๋„ ๋‚ด์—์„œ๋Š” ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ ์ฝ”๋”ฉ์„ ํ†ตํ•ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋‚ด์— ์‹ฌ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋‚ด์— ์ž์ฒด์ ์œผ๋กœ AWS SDK๊ฐ€ ์กด์žฌํ•ฉ๋‹ˆ๋‹ค.

AWS SDK๋ž€ ๋ฌด์—‡์ธ๊ฐ€์š”?

  • AWS Software Development Kit (AWS SDK)๋Š” ํŠน์ • ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด์— ๋งž๋Š” API(๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ง‘ํ•ฉ)๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
  • AWS ์„œ๋น„์Šค๋ฅผ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๋ฐฉ์‹์œผ๋กœ ์ ‘๊ทผํ•˜๊ณ  ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.
  • ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋‚ด์— ์ž„๋ฒ ๋””๋“œ๋˜์–ด ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค.
  • ์ง€์›๋˜๋Š” SDK:
    • ์ผ๋ฐ˜ SDK: JavaScript, Python, PHP, .NET, Ruby, Java, Go, Node.js, C++
    • ๋ชจ๋ฐ”์ผ SDK: Android, iOS ๋“ฑ
    • IoT ๋””๋ฐ”์ด์Šค SDK: Embedded C, Arduino ๋“ฑ
์˜ˆ์‹œ: AWS CLI๋Š” AWS SDK for Python์„ ๊ธฐ๋ฐ˜์œผ๋กœ ๋งŒ๋“ค์–ด์กŒ์Šต๋‹ˆ๋‹ค.

AWS CLI ์„ค์น˜ ๋ฐ ์„ค์ •

AWS CLI ์„ค์น˜

 

์ตœ์‹  ๋ฒ„์ „์˜ AWS CLI ์„ค์น˜ ๋˜๋Š” ์—…๋ฐ์ดํŠธ - AWS Command Line Interface

์ด์ „ ๋ฒ„์ „์—์„œ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๊ฒฝ์šฐ unzip ๋ช…๋ น์„ ์‹คํ–‰ํ•˜๋ฉด ๊ธฐ์กด ํŒŒ์ผ์„ ๋ฎ์–ด์“ธ์ง€ ๋ฌป๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ์Šคํฌ๋ฆฝํŠธ ์ž๋™ํ™”์™€ ๊ฐ™์€ ๊ฒฝ์šฐ์— ์ด๋Ÿฌํ•œ ํ”„๋กฌํ”„ํŠธ๋ฅผ ๊ฑด๋„ˆ๋›ฐ๋ ค๋ฉด unzip์— ๋Œ€ํ•œ -u ์—…๋ฐ์ด

docs.aws.amazon.com

 

AWS CLI๋ฅผ ์„ค์น˜ํ•˜๋ ค๋ฉด AWS์—์„œ ์ œ๊ณตํ•˜๋Š” ๊ฐ€์ด๋“œ๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ฃผ๋กœ GUI Installer๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

์„ค์น˜ ํ™•์ธ

์„ค์น˜ ํ›„ ํ„ฐ๋ฏธ๋„ ์ฐฝ์—์„œ ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ์„ค์น˜๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ์™„๋ฃŒ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

aws --version

์˜ˆ์‹œ ์ถœ๋ ฅ

aws-cli/2.23.2 Python/3.12.6 Darwin/24.2.0 exe/x86_64

AWS CLI ์‹ค์Šต

IAM์—์„œ Access Key ์ƒ์„ฑ

  • AWS ์ฝ˜์†”์—์„œ IAM ์„œ๋น„์Šค๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.
  • ๋ณด์•ˆ ์ž๊ฒฉ ์ฆ๋ช…(Security credentials) ํƒญ์œผ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.
  • Access Keys ์„น์…˜์—์„œ Access Key ๋งŒ๋“ค๊ธฐ(Create Access Key) ๋ฒ„ํŠผ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  • ๋กœ์ปฌ ์ฝ”๋“œ์ธ์ง€ ๋˜๋Š” AWS ๋‚ด๋ถ€๋‚˜ ์™ธ๋ถ€์—์„œ ์‹คํ–‰๋˜๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ธ์ง€์— ๋”ฐ๋ผ ์•„๋ž˜์ชฝ์—์„œ ๋ช‡ ๊ฐ€์ง€ ๊ถŒ์žฅ ์‚ฌํ•ญ์„ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • ์ง€๊ธˆ์€ CLI & ์•ก์„ธ์Šค ํ‚ค๋ฅผ ์‚ฌ์šฉ → ์„ค์ • ํƒœ๊ทธ ์„ค์ •์€ ํŒจ์Šคํ–ˆ์Šต๋‹ˆ๋‹ค.

  • Access Key ID์™€ Secret Access Key๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. ์ด ์ •๋ณด๋Š” ์ด ํŽ˜์ด์ง€์—์„œ๋งŒ Access Key์™€ Secret Access Key์— ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.


AWS CLI ๊ตฌ์„ฑ

AWS CLI๋ฅผ ๊ตฌ์„ฑํ•˜๋ ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๊ณ , ์•„๋ž˜ ์ •๋ณด๋ฅผ ์ฐจ๋ก€๋Œ€๋กœ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.
aws configure
  • AWS Access Key ID: ์ƒ์„ฑ๋œ Access Key ID๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.
  • AWS Secret Access Key: ์ƒ์„ฑ๋œ Secret Access Key๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.
  • Default region name: ์›ํ•˜๋Š” ๋ฆฌ์ „์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค (์˜ˆ: eu-west-1).
  • Default output format: ๊ทธ๋ƒฅ ์—”ํ„ฐ ํ‚ค๋ฅผ ๋ˆŒ๋Ÿฌ ๊ธฐ๋ณธ๊ฐ’(json)์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

์˜ˆ์‹œ

aws configure
AWS Access Key ID [None]: AKIA6JQ44VCU6PNMWSWB
AWS Secret Access Key [None]: AZPN3zojWozWCndIjhB0Unh8239a1bzbzO5fqqkZq
Default region name [None]: ap-northeast-2
Default output format [None]:

AWS CLI ๊ธฐ๋ณธ ๋ช…๋ น์–ด

์‚ฌ์šฉ์ž ๋‚˜์—ดํ•˜๊ธฐ

๋ชจ๋“  ์‚ฌ์šฉ์ž๋ฅผ ๋‚˜์—ดํ•˜๋ ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”

aws iam list-users

์˜ˆ์‹œ ์ถœ๋ ฅ

{
    "Users": [
        {
            "Path": "/",
            "UserName": "toby",
            "UserId": "AIDA6JQ44VCUSKEUKYQRN",
            "Arn": "arn:aws:iam::982534367401:user/toby",
            "CreateDate": "2025-01-20T06:03:13+00:00"
        }
    ]
}
(END)
  • ์ฆ‰, AWS Management Console๊ณผ AWS CLI๋Š” ๋น„์Šทํ•œ ์ข…๋ฅ˜์˜ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ, CLI ๊ถŒํ•œ์€ IAM ์ฝ˜์†”์—์„œ ์–ป๋Š” ๊ถŒํ•œ๊ณผ ์™„์ „ํžˆ ๋™์ผํ•ฉ๋‹ˆ๋‹ค.

์‚ฌ์šฉ์ž๋ฅผ ๊ทธ๋ฃน์—์„œ ์ œ๊ฑฐํ•˜๊ธฐ

  • ํŠน์ • ์‚ฌ์šฉ์ž๋ฅผ ํŠน์ • ๊ทธ๋ฃน์—์„œ ์ œ๊ฑฐํ•˜๋ ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์„ธ์š”.
aws iam remove-user-from-group --group-name admins --user-name stephane

์‚ฌ์šฉ์ž ๋‹ค์‹œ ๊ทธ๋ฃน์— ์ถ”๊ฐ€ํ•˜๊ธฐ

  • ์‚ฌ์šฉ์ž๋ฅผ ๊ทธ๋ฃน์— ๋‹ค์‹œ ์ถ”๊ฐ€ํ•˜๋ ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์„ธ์š”.
aws iam add-user-to-group --group-name admins --user-name stephane

์‚ฌ์šฉ ๊ถŒํ•œ ํ…Œ์ŠคํŠธ

์‚ฌ์šฉ์ž ๊ถŒํ•œ์ด ์—†๋Š” ์ƒํƒœ์—์„œ ์ž‘์—… ์‹œ๋„

  • ์‚ฌ์šฉ์ž๊ฐ€ ๊ทธ๋ฃน์—์„œ ์ œ๊ฑฐ๋˜๋ฉด ๋ช…๋ น์–ด ์‹คํ–‰ ์‹œ ๊ถŒํ•œ ๊ฑฐ๋ถ€ ๋ฉ”์‹œ์ง€๊ฐ€ ๋‚˜์˜ต๋‹ˆ๋‹ค.
aws iam list-users

์‚ฌ์šฉ์ž๋ฅผ ๋‹ค์‹œ ์ถ”๊ฐ€ํ•œ ํ›„ ์ž‘์—…

  • ์‚ฌ์šฉ์ž๋ฅผ ๋‹ค์‹œ ๊ทธ๋ฃน์— ์ถ”๊ฐ€ํ•œ ํ›„์—๋Š” ์ •์ƒ์ ์œผ๋กœ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ฐธ๊ณ 

  1. ๊ทธ๋ฃน ์ด๋ฆ„๊ณผ ์‚ฌ์šฉ์ž ์ด๋ฆ„์€ ์ƒํ™ฉ์— ๋งž๊ฒŒ ์ˆ˜์ •ํ•˜์„ธ์š”.
  2. ๋ช…๋ น์–ด ์‹คํ–‰ ํ›„ ์‘๋‹ต์ด JSON ํ˜•์‹์œผ๋กœ ์ถœ๋ ฅ๋ฉ๋‹ˆ๋‹ค. ์‚ฌ๋žŒ์ด ์ฝ๊ธฐ ์‰ฝ๊ฒŒ ์ถœ๋ ฅํ•˜๋ ค๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์ด --output text ๋˜๋Š” --output table ์˜ต์…˜์„ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค,
aws iam list-users --output table

๋ณด์•ˆ ์ฃผ์˜ ์‚ฌํ•ญ

Access Keys๋Š” ๋น„๋ฐ€๋ฒˆํ˜ธ์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ๋น„๋ฐ€์Šค๋Ÿฌ์šด ์ •๋ณด์ž…๋‹ˆ๋‹ค. ์ด๋ฅผ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๊ณผ ๊ณต์œ ํ•˜์ง€ ๋งˆ์„ธ์š”. Access Keys๊ฐ€ ์œ ์ถœ๋  ๊ฒฝ์šฐ, ํ•ด์ปค๊ฐ€ AWS ๋ฆฌ์†Œ์Šค์— ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ, Access Keys๋Š” ์•ˆ์ „ํ•˜๊ฒŒ ๋ณด๊ด€ํ•˜๊ณ , ๋ถˆํ•„์š”ํ•˜๊ฒŒ ๋…ธ์ถœ๋˜์ง€ ์•Š๋„๋ก ์ฃผ์˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

Access Keys ๊ด€๋ฆฌ ํŒ

  1. ์ •๊ธฐ์ ์ธ Access Key ํšŒ์ „: ์ฃผ๊ธฐ์ ์œผ๋กœ Access Keys๋ฅผ ์žฌ๋ฐœ๊ธ‰ํ•˜๊ณ , ์ด์ „ ํ‚ค๋Š” ๋น„ํ™œ์„ฑํ™”ํ•˜๊ฑฐ๋‚˜ ์‚ญ์ œํ•ฉ๋‹ˆ๋‹ค.
  2. ์ตœ์†Œ ๊ถŒํ•œ ์›์น™: ํ•„์š”ํ•œ ์ตœ์†Œํ•œ์˜ ๊ถŒํ•œ๋งŒ์„ ๋ถ€์—ฌํ•˜์—ฌ ๋ณด์•ˆ์„ ๊ฐ•ํ™”ํ•ฉ๋‹ˆ๋‹ค.
  3. Access Keys ์‚ฌ์šฉ ์ œํ•œ: ๊ฐ€๋Šฅํ•œ ๊ฒฝ์šฐ, IAM ์—ญํ• (Role)์„ ์‚ฌ์šฉํ•˜์—ฌ ์ž„์‹œ ์ž๊ฒฉ ์ฆ๋ช…์„ ํ™œ์šฉํ•ฉ๋‹ˆ๋‹ค.
  4. ๋ชจ๋‹ˆํ„ฐ๋ง ๋ฐ ๋กœ๊น…: Access Keys ์‚ฌ์šฉ์„ ๋ชจ๋‹ˆํ„ฐ๋งํ•˜๊ณ , ์ด์ƒ ์ง•ํ›„๊ฐ€ ๋ฐœ๊ฒฌ๋˜๋ฉด ์ฆ‰์‹œ ๋Œ€์‘ํ•ฉ๋‹ˆ๋‹ค.

AWS์— ์ ‘๊ทผํ•˜๋Š” ๋ฐฉ๋ฒ•์€ AWS Management Console, AWS CLI, AWS SDK ์„ธ ๊ฐ€์ง€๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ฐ ๋ฐฉ๋ฒ•์€ ๊ณ ์œ ์˜ ๋ณด์•ˆ ๋ฉ”์ปค๋‹ˆ์ฆ˜(๋น„๋ฐ€๋ฒˆํ˜ธ + MFA, Access Keys)์„ ํ†ตํ•ด ๋ณดํ˜ธ๋˜๋ฉฐ, ์‚ฌ์šฉ์ž์™€ ๊ทธ๋ฃน์˜ ๋ณด์•ˆ์„ ๊ฐ•ํ™”ํ•˜๋Š” ๋ฐ ์ค‘์š”ํ•œ ์—ญํ• ์„ ํ•ฉ๋‹ˆ๋‹ค. ํŠนํžˆ, Access Keys๋Š” ๋น„๋ฐ€๋ฒˆํ˜ธ์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ๋น„๋ฐ€์Šค๋Ÿฌ์šด ์ •๋ณด์ด๋ฏ€๋กœ ์ฒ ์ €ํ•˜๊ฒŒ ๊ด€๋ฆฌํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

 

AWS CLI๋ฅผ ํ†ตํ•ด ๋ช…๋ น์ค„์—์„œ AWS ์„œ๋น„์Šค๋ฅผ ํšจ์œจ์ ์œผ๋กœ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, AWS SDK๋ฅผ ํ™œ์šฉํ•˜์—ฌ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๋ฐฉ์‹์œผ๋กœ AWS ๋ฆฌ์†Œ์Šค๋ฅผ ์ œ์–ดํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ณด์•ˆ ๊ฐ•ํ™”๋ฅผ ์œ„ํ•ด ๋น„๋ฐ€๋ฒˆํ˜ธ ์ •์ฑ…๊ณผ MFA ์„ค์ •์„ ์ ์ ˆํžˆ ๊ตฌ์„ฑํ•˜๊ณ , Access Keys๋ฅผ ์•ˆ์ „ํ•˜๊ฒŒ ๊ด€๋ฆฌํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•ฉ๋‹ˆ๋‹ค.


์ฐธ๊ณ  ์ž๋ฃŒ