Roles
Roles
Similar to users, roles are IAM identities intended to grant access to AWS resources. However, unlike users, roles lack any long-lived credentials such as console passwords and access key pairs. Rather, they are assumed by other authorized identities temporarily to obtain a certain level of access. 1 Once assumed, the user is given temporary short-lived credentials via the AWS STS service, which are associated with the role permissions.
In addition to authorizing other human users to perform certain actions, roles may also be associated with AWS services to perform certain API calls. These are known as service-linked roles. 2
Use Cases 3
- Provide access across multiple AWS accounts: Enables users to have certain role-defined access for a given account.
- Provide access for non-AWS workloads: Third-party applications may assume the role to assume access to AWS resources.
- Provide access to third-party AWS accounts: Allows other organizations with AWS users and services to access your account as permitted by a given role.
- Provide access through identity federation: Enables organizations to leverage their existing user information and define role mappings for given groups.