概念
IAM users, groups and roles
The identities in an AWS account, the credentials each one has, and when to use which.
このレッスンはまだ翻訳されていないため、英語で表示しています。
- 1Developers who do the same job are members of one group.
- 2A policy attached to the group gives every member the same permissions.
- 3An application on Amazon EC2 assumes a role and receives temporary credentials.
- 4With them, it can read the Amazon S3 data that the role’s policy allows.
流れ
- 1Developers who do the same job are members of one group.
- 2A policy attached to the group gives every member the same permissions.
- 3An application on Amazon EC2 assumes a role and receives temporary credentials.
- 4With them, it can read the Amazon S3 data that the role’s policy allows.
Root user
- What it is
- The first identity, created with the account. It can do everything.
- Credentials
- Email address and password, plus MFA
- Use it for
- Only the few tasks that require it
IAM user
- What it is
- One person or application in one account
- Credentials
- Long-term: a password, access keys or both
- Use it for
- Cases that cannot use roles or federation, such as emergency access
IAM user group
- What it is
- A collection of IAM users
- Credentials
- None. A group cannot sign in.
- Use it for
- Giving many users the same permissions
IAM role
- What it is
- A set of permissions that a trusted identity can assume
- Credentials
- Temporary, created each time the role is assumed
- Use it for
- Applications, AWS services, other accounts and federated users
| Identity | What it is | Credentials | Use it for |
|---|---|---|---|
| Root user | The first identity, created with the account. It can do everything. | Email address and password, plus MFA | Only the few tasks that require it |
| IAM user | One person or application in one account | Long-term: a password, access keys or both | Cases that cannot use roles or federation, such as emergency access |
| IAM user group | A collection of IAM users | None. A group cannot sign in. | Giving many users the same permissions |
| IAM role | A set of permissions that a trusted identity can assume | Temporary, created each time the role is assumed | Applications, AWS services, other accounts and federated users |
1 / 3
Root user
- What it is
- The first identity, created with the account. It can do everything.
- Credentials
- Email address and password, plus MFA
- Use it for
- Only the few tasks that require it
| Identity | What it is | Credentials | Use it for |
|---|---|---|---|
| Root user | The first identity, created with the account. It can do everything. | Email address and password, plus MFA | Only the few tasks that require it |
2 / 3
IAM user
- What it is
- One person or application in one account
- Credentials
- Long-term: a password, access keys or both
- Use it for
- Cases that cannot use roles or federation, such as emergency access
IAM user group
- What it is
- A collection of IAM users
- Credentials
- None. A group cannot sign in.
- Use it for
- Giving many users the same permissions
| Identity | What it is | Credentials | Use it for |
|---|---|---|---|
| IAM user | One person or application in one account | Long-term: a password, access keys or both | Cases that cannot use roles or federation, such as emergency access |
| IAM user group | A collection of IAM users | None. A group cannot sign in. | Giving many users the same permissions |
3 / 3
IAM role
- What it is
- A set of permissions that a trusted identity can assume
- Credentials
- Temporary, created each time the role is assumed
- Use it for
- Applications, AWS services, other accounts and federated users
| Identity | What it is | Credentials | Use it for |
|---|---|---|---|
| IAM role | A set of permissions that a trusted identity can assume | Temporary, created each time the role is assumed | Applications, AWS services, other accounts and federated users |
概要
An identity is anything you can give permissions to. Besides the root user, IAM has three kinds. An IAM user stands for one person or one application and has long-term credentials. An IAM user group is a collection of users who need the same permissions. An IAM role is a set of permissions that a trusted person, application or AWS service can take on for a short time.
Attach policies to groups rather than to each user. When someone joins a team, add them to the team’s group. When they change jobs, move them to another group. A group cannot sign in, and a group cannot contain other groups.
概要
A role has no password and no long-term keys. Whoever assumes it gets temporary credentials that expire on their own. AWS recommends roles for applications, and IAM Identity Center or federation for people. Keep IAM users for the few cases that cannot use these, such as emergency access.
覚えること
- IAM user: one person or application, with a long-term password, access keys or both.
- User group: gives many users the same permissions. It has no credentials of its own.
- A user can belong to several groups. Groups cannot be nested.
- Role: taken on for a short time, with temporary credentials.
- A new IAM user has no permissions until you grant them.
覚えること
- An IAM user with full administrator rights is still not the root user.
試験では
- “Give the same permissions to every developer on a team” points to an IAM user group with a policy attached.
- “Temporary credentials for an application, an AWS service or a user from another account” points to an IAM role.
混同しやすいもの
- AWS account root userThe identity created with every AWS account. It can do everything, so protect it and use it only when you must.
- IAM policiesJSON documents that allow or deny actions on AWS resources, and how AWS decides between them.
AWS IAM Identity CenterOne place to manage your workforce’s sign-in to all your AWS accounts and business applications.