A solutions architect is designing a multi-account federation solution for a company using AWS Organizations. The company wants to allow its corporate directory users to log in to the AWS Management Console of various member accounts using their existing credentials via an external SAML 2.0 Identity Provider (IdP). The IdP is already configured, and the SAML provider object has been created in each member account. Which of the following configuration steps must be performed to establish this federated access? (Select TWO.)
- Configure the external IdP to send SAML assertions containing attributes for https://aws.amazon.com/SAML/Attributes/Role and https://aws.amazon.com/SAML/Attributes/RoleSessionName.Cevap
- In each target AWS member account, create an IAM role with a trust policy that specifies the SAML provider ARN as the principal and allows the sts:AssumeRoleWithSAML action.Cevap
- CCreate a Service Control Policy (SCP) at the root Organizational Unit (OU) level that allows the sts:AssumeRoleWithSAML action for the IAM roles in all member accounts.
- DIn each target AWS member account, create an IAM role with a trust policy that specifies the IdP's metadata URL as the principal and allows the sts:AssumeRole action.
- EIn each target AWS member account, attach an IAM identity-based policy to the federated IAM role that grants permissions to execute the sts:AssumeRoleWithSAML action.
Cevap
To configure multi-account SAML federation, the external IdP must be configured to pass the Role and RoleSessionName attributes in the SAML assertion, and each target AWS member account must contain an IAM role configured with a trust policy that permits the sts:AssumeRoleWithSAML action from the IAM SAML provider principal.
Establishing federated access via SAML 2.0 requires configuration at both the Identity Provider (IdP) and AWS levels. The IdP must send assertions containing the required attributes (Role and RoleSessionName) so AWS can authorize the session. On the AWS side, each member account must have an IAM role that explicitly trusts the SAML provider ARN and allows the sts:AssumeRoleWithSAML action.
Adım Adım Çözüm
Anahtar Kavram
SAML 2.0 federation in a multi-account environment requires both metadata-based trust on the AWS side (role trust policy using sts:AssumeRoleWithSAML) and claim-based configuration on the IdP side (Role and RoleSessionName attributes).