IAM
<aside>
๐ก Identity and Access Management, ๊ธ๋ก๋ฒ ์๋น์ค
</aside>
- Root ๊ณ์ ์ ์ต์ด์ ์์ฑ๋๋ ๊ณ์ ์ผ๋ก, ๊ณต์ ๋๊ฑฐ๋ ์ฌ์ฉ๋๋ฉด ์๋จ.
- ๊ทธ ๋์ , User ๊ณ์ ์ ๋ง๋ค์ด์ ์ฌ์ฉ. ์ ์ ๋ ๊ทธ๋ฃน์ผ๋ก ๋ฌถ์ผ ์ ์์.
- ์ ์ ์ ๊ทธ๋ฃน์ Policy๋ผ๋, JSON ๋ฌธ์์ ๋ฐฐ์ ๋ ์ ์๋ค.
- Policy๋ ๊ฐ ์๋น์ค์ ์ด๋ค ๊ถํ์ด ์๋์ง๋ฅผ ๋ช
์
- AWS์ ์์น: ์ ์ ๊ฐ ํ์ํ ๊ฒ๋ณด๋ค ๊ทธ ์ด์์ ๊ถํ์ ๋ถ์ฌํ์ง ๋ง๋ผ.
- Inline Policy: ์ ์ ์๊ฒ๋ง ๋ถ์ ์ ์๋ Policy.
- Version: Policy ์ธ์ด์ ๋ฒ์ ,
โ2012-10-17โ
- Id
- Statement
- Sid
- Effect: Allow or Deny
- Principal: account/user/role to which this policy applied to
- Action: list of actions this policy allows or denies
- Resource: list of resources to which the actions applied to
- Condition
- AdministratorAccess์ JSON Policy
- IAMReadOnlyAccess์ ๊ฒฝ์ฐ
MFA (Multi Factor Authentication)
- MFA = password you know + security device you own
- Options
- Virtual MFA device: Google Authenticator, Authy
- Universal 2nd Factor(U2F) Security Key: YubiKey (Physical device)
- Hardware Key Fob MFA device: Gemalto
- โฆ
AWS CLI
-
AWS๋ฅผ ์ ์ํ๊ธฐ ์ํ ์ธ ๊ฐ์ง ๋ฐฉ๋ฒ: ์ฝ์, CLI(access keys), SDK(access keys)
- AWS CLI๋ ํ์ด์ฌ์ฉ AWS SDK์ธ boto๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ๋ง๋ค์ด์ง.
-
Access Key ID ~= username
-
Secret Access Key ~= password
-
ํฐ๋ฏธ๋์ด ์ ๋๋ ํ๊ฒฝ์ ์ํด์ CloudShell์ด๋ผ๋ ์น ํฐ๋ฏธ๋๋ ์ ๊ณตํจ.