An enterprise is migrating a legacy customer portal application to a member account within its AWS Organizations structure. The application requires direct SAML 2.0 federation with an external identity provider (IdP) for client authentication because the application's legacy client does not support modern OpenID Connect (OIDC) or integration with AWS IAM Identity Center. A solutions architect must configure the trust relationships so that external users can successfully authenticate and assume a role named LegacyAppFederatedRole. Which of the following actions must the solutions architect take to meet these requirements? (Select TWO.)
- Create a SAML identity provider in the target AWS member account using the metadata document retrieved from the external identity provider.Answer
- Configure the trust policy of the IAM role in the member account to allow the sts:AssumeRoleWithSAML action, specifying the SAML identity provider as the principal.Answer
- CConfigure the trust policy of the IAM role in the member account to allow the sts:AssumeRole action, specifying the SAML identity provider as the principal.
- DAttach a Service Control Policy (SCP) at the Organizational Unit level that grants sts:AssumeRoleWithSAML to all federated identities in the member account to bypass local IAM role configurations.
- EConfigure the trust policy of the IAM role in the member account to allow the sts:AssumeRoleWithWebIdentity action for the SAML identity provider principal.
Answer
Create a SAML identity provider in the target AWS member account using the metadata document from the external identity provider, and configure the trust policy of the IAM role in the member account to allow the sts:AssumeRoleWithSAML action, specifying the SAML identity provider as the principal.
Establishing direct SAML 2.0 federation requires registering the identity provider in the destination member account's IAM. Once registered, the destination IAM role must trust that SAML provider using the sts:AssumeRoleWithSAML action in its trust policy, enabling external users to exchange their SAML assertion for AWS temporary credentials.
Step-by-Step Solution
Key Concept
SAML 2.0 Identity Federation in IAM