An enterprise manages its multi-account environment using AWS Organizations. The security team has configured an on-premises SAML 2.0 Identity Provider (IdP) for federated access. The enterprise wants to allow external developers authenticated via this IdP to assume a specific troubleshooting role in a target member account. The Solutions Architect configures the SAML identity provider object inside the member account. However, when developers attempt to federate directly into the target member account via the identity provider's portal, they receive an explicit access denied error before they can choose a role. Which configuration change will successfully resolve this authentication failure and establish the trust relationship?
- Update the IAM role trust policy in the target member account to set the local SAML provider as the Principal, specify the sts:AssumeRoleWithSAML action, and add a condition that the SAML:aud attribute matches the AWS SAML endpoint.Cevap
- BUpdate the IAM role trust policy in the target member account to list the local SAML provider as the Principal, but configure the policy to allow the standard sts:AssumeRole action to permit cross-account federation.
- CAttach a Service Control Policy (SCP) to the target member account's Organizational Unit (OU) that explicitly allows the sts:AssumeRoleWithSAML action, dynamically overriding the trust policy requirement.
- DModify the trust policy of the target member account's IAM role to trust the SAML provider located in the organization's management account, enabling cross-account trust via a single centralized provider.
Cevap
Update the IAM role trust policy in the target member account to set the local SAML provider as the Principal, specify the sts:AssumeRoleWithSAML action, and add a condition that the SAML:aud attribute matches the AWS SAML endpoint.
Direct SAML 2.0 federation into a member account requires configuring a SAML identity provider resource inside that specific member account. The trust policy of the IAM role to be assumed must list this local SAML provider as the principal and explicitly allow the sts:AssumeRoleWithSAML action. Adding a condition verifying that the SAML:aud attribute matches the standard AWS SAML endpoint ensures the assertion is intended for the correct AWS environment.
Adım Adım Çözüm
Anahtar Kavram
Direct multi-account SAML federation requires configuring local SAML provider objects and matching trust policies using the sts:AssumeRoleWithSAML action in each target account.