16B. IAM ์ฌ์ฉ์ ์์ฑํ๊ธฐ
16B. IAM ์ฌ์ฉ์ ์์ฑํ๊ธฐ ๊ด๋ จ

์ด์ IAM ์ฌ์ฉ์๋ฅผ ์์ฑํ๊ณ IAM ๊ทธ๋ฃน์ ์ถ๊ฐํด๋ณด๊ฒ ์ต๋๋ค.

[Details]
โ [Users]
)์์ ์์ชฝ [Create New Users]
๋ฒํผ์ ํด๋ฆญํฉ๋๋คIAM ์ฌ์ฉ์๋ฅผ ์์ฑํฉ๋๋ค. ํ ๋ฒ์ 5๊ฐ๊น์ง ์์ฑํ ์ ์์ต๋๋ค. Enter User Names์ ์ฒซ ๋ฒ์งธ ์นธ์ exampleuser1
์ ์
๋ ฅํ๊ณ [Create]
๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
- Generate an access key for each User: AWS ๊ณ์ ์ ์ก์ธ์ค ํค๋ฅผ ์์ฑํ ๊ฒ์ฒ๋ผ ๊ฐ IAM ์ฌ์ฉ์๋ ์ก์ธ์ค ํค๋ฅผ ๋ณ๋๋ก ์์ฑํ ์ ์์ต๋๋ค. IAM ์ฌ์ฉ์์ ์ก์ธ์ค ํค๋ ํ์ํ ๋ถ๋ถ๋ง ๊ถํ์ ์ค์ ํ ์ ์๊ธฐ ๋๋ฌธ์ AWS ๊ณ์ ์ ์ก์ธ์ค ํค๋ณด๋ค ๋ณด์์ ์ข๋ ์์ ํฉ๋๋ค.

IAM ์ฌ์ฉ์๊ฐ ์์ฑ๋์์ต๋๋ค. Show User Security Credentials๋ฅผ ํด๋ฆญํ๋ฉด exampleuser1
์ ์ก์ธ์ค ํค์ ์ํฌ๋ฆฟ ํค๊ฐ ํ์๋ฉ๋๋ค.

[Download Credentials]
๋ฒํผ์ ํด๋ฆญํ์ฌ ์ก์ธ์ค ํค, ์ํฌ๋ฆฟ ํค ํ์ผ์ ๋ค์ด๋ก๋ํฉ๋๋ค.Warning
์ฌ๊ธฐ์ ์ก์ธ์ค ํค์ ์ํฌ๋ฆฟ ํค๋ฅผ ๋ฐ๋ก ๋ณต์ฌํ์ฌ ๋ณด๊ดํ์ง ์๊ฑฐ๋, [Download Credentials]
๋ฒํผ์ ํด๋ฆญํ์ฌ ํ์ผ์ ๋ฐ์ง ์๊ณ ๊ทธ๋ฅ [Close Window]
๋ฒํผ์ ํด๋ฆญํ์ฌ ์ฐฝ์ ๋ซ์๋ฒ๋ฆฌ๋ฉด ๋ ๋ฒ ๋ค์ ์ํฌ๋ฆฟ ํค๋ฅผ ํ์ธํ ์ ์๊ฒ ๋ฉ๋๋ค(์ํฌ๋ฆฟ ํค๋ ์ผ์ข
์ ๋น๋ฐ๋ฒํธ์
๋๋ค). ๋ฐ๋ผ์ ์์ฑ๋ ์งํ ํค๋ค์ ๋ณต์ฌํ์ฌ ๋ณด๊ดํ๊ฑฐ๋ ํ์ผ์ ๊ผญ ๋ฐ์๋์ด์ผ ํฉ๋๋ค.
๊ทธ๋ฅ ๋ซ์๋ฒ๋ ธ๊ฑฐ๋ ํค ํ์ผ์ ๋ถ์คํ์๋ค๋ฉด ์ด ์ก์ธ์ค ํค๋ ์ฌ์ฉํ ๋ฐฉ๋ฒ์ด ์์ผ๋ฏ๋ก ํ๊ธฐํ๊ณ , ์๋ก์ด ์ก์ธ์ค ํค๋ฅผ ์์ฑํด์ผ ํฉ๋๋ค.
IAM ์ฌ์ฉ์ ๋ชฉ๋ก์ IAM ์ฌ์ฉ์(exampleuser1
)๊ฐ ์์ฑ๋์์ต๋๋ค.

exampleuser1
)์ ์ฒดํฌ ๋ฐ์ค๋ฅผ ์ ํํ๊ณ ์์ชฝ [User Actions]
๋ฒํผ์ ํด๋ฆญํ๋ฉด ํ์
๋ฉ๋ด๊ฐ ๋์ต๋๋ค. [Add User to Groups]
์ ํด๋ฆญํฉ๋๋ค.IAM ๊ทธ๋ฃน์ IAM ์ฌ์ฉ์๋ฅผ ์ถ๊ฐํฉ๋๋ค. IAM ์ฌ์ฉ์๋ ์ฌ๋ฌ ๊ทธ๋ฃน์ ์ํ ์ ์์ต๋๋ค.

[Add to Groups]
๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.IAM ๊ทธ๋ฃน์ ์ฌ์ฉ์๊ฐ ์ถ๊ฐ๋์์ต๋๋ค.

exampleuser1
)๋ฅผ ์ ํํ๋ฉด ์ธ๋ถ ๋ด์ฉ์์ ์ด IAM ์ฌ์ฉ์๊ฐ ์ํ IAM ๊ทธ๋ฃน์ด ํ์๋ฉ๋๋ค.์ด์ ์ด IAM ์ฌ์ฉ์(exampleuser1
)๊ฐ S3์ ์ ๊ทผํ ์ ์๋๋ก ์ค์ ํด๋ณด๊ฒ ์ต๋๋ค.

exampleuser1
)๋ฅผ ์ ํํฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ [Permissions]
ํญ์ [Attach User Policy]
๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.IAM ์ฌ์ฉ์์ ๊ถํ์
๋๋ค. Select Policy Template์๋ AWS์ ๋ชจ๋ ๋ฆฌ์์ค์ ๋ํ ์ ๊ทผ ๊ถํ์ Full Access, Read Only Access, ๊ธฐํ Access๋ก ๊ตฌ๋ถํ์ฌ ์ค๋นํด๋์์ต๋๋ค. ๊ฐ์๊ฐ ์๋นํ ๋ง์ผ๋ฏ๋ก ์คํฌ๋กค์ ๋ด๋ ค Amazon S3 Full Access์ [Select]
๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.

S3์๋ง ์ ๊ทผํ ์ ์๋๋ก ํด์ฃผ๋ ์ ์ฑ ํ์ผPolicy Document์ด ์๋์ผ๋ก ์์ฑ๋ฉ๋๋ค.

[Apply Policy]
๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
exampleuser1
)์ ์ธ๋ถ ๋ด์ฉ์์ User Policies ๋ถ๋ถ์ S3 ์ ๊ทผ๊ถํ ์ ์ฑ
์ด ์ถ๊ฐ๋์์ต๋๋ค.