Question

Difficulty: MediumMulti-Account Identity and Access Management Federation

A logistics enterprise is deploying a multi-account AWS environment and wants to federate access for its administrative operations team using an external OpenID Connect (OIDC) identity provider. The administrators need to assume specific roles to access resources across multiple target member accounts. The solutions architect must configure OIDC federation directly with AWS IAM for these member accounts. Which of the following configuration steps are required to establish this trust relationship? (Select TWO.)

  1. In each target member account, create an IAM OpenID Connect (OIDC) identity provider that points to the external identity provider.Answer
  2. In each target member account, create an IAM role with a trust policy that specifies the OIDC identity provider as the principal and allows the sts:AssumeRoleWithWebIdentity action.Answer
  3. C
    In each target member account, create an IAM role with a trust policy that specifies the OIDC identity provider as the principal and allows the sts:AssumeRole action.
  4. D
    In the AWS Organizations management account, create a Service Control Policy (SCP) that allows the sts:AssumeRoleWithWebIdentity action for the OIDC provider and attach it to the target member accounts.

Answer

To establish trust with an external OpenID Connect (OIDC) identity provider, you must create an IAM OIDC identity provider in the target member accounts and configure IAM roles with a trust policy allowing the sts:AssumeRoleWithWebIdentity action.
Establishing OIDC federation requires registering the OIDC provider in the IAM configuration of the member accounts and defining IAM roles with trust policies that specifically authorize the sts:AssumeRoleWithWebIdentity API action. This allows users authenticated by the external IdP to assume the roles.

Step-by-Step Solution

1
Register the external OpenID Connect identity provider in the target AWS member accounts.
The member accounts now recognize security tokens issued by the external OIDC provider.
Establishing trust at the account level is a prerequisite for mapping external users to specific AWS IAM roles.
2
Create IAM roles with trust policies that allow the sts:AssumeRoleWithWebIdentity action, specifying the OIDC provider as the trusted entity.
External federated users who present valid OIDC tokens can assume the designated IAM roles in the member accounts.
AWS Security Token Service (STS) requires the sts:AssumeRoleWithWebIdentity API action to perform web identity federation.

Key Concept

OpenID Connect (OIDC) Federation Configuration
Rate this question