ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

概念

IAM users, groups and roles

The identities in an AWS account, the credentials each one has, and when to use which.

本课尚未翻译,暂以英文显示。

Developer A
Developers group
Policy for developers
Developer B
EC2
IAM role
S3
  1. 1Developers who do the same job are members of one group.
  2. 2A policy attached to the group gives every member the same permissions.
  3. 3An application on Amazon EC2 assumes a role and receives temporary credentials.
  4. 4With them, it can read the Amazon S3 data that the role’s policy allows.
People get permissions through a group. An application gets them through a role.

分步说明

  1. 1Developers who do the same job are members of one group.
  2. 2A policy attached to the group gives every member the same permissions.
  3. 3An application on Amazon EC2 assumes a role and receives temporary credentials.
  4. 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
The four kinds of identity side by side.

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

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

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
The four kinds of identity side by side.

是什么

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.