A company manages a multi-account AWS environment using AWS Organizations. The company needs to grant read-only access to a third-party compliance team. The compliance team authenticates using an external corporate SAML 2.0 Identity Provider (IdP). The compliance team must access resources across several target accounts in the 'Compliance' Organizational Unit (OU) without managing local AWS IAM user credentials in each account.
An administrator needs to configure the trust relationship so that the external compliance team can federate directly into the target accounts. Service Control Policies (SCPs) are applied to the 'Compliance' OU to restrict administrative access.
Which configuration strategy correctly establishes this federated access in a secure manner?
- In each target AWS account, create a SAML Identity Provider (IdP) referencing the compliance team's IdP metadata. Create an IAM role in each target account with a trust policy that allows the `sts:AssumeRoleWithSAML` action for the local SAML provider ARN, and attach the required read-only permission policies to these roles.Cevap
- BCreate a Service Control Policy (SCP) at the 'Compliance' OU level that explicitly allows the external SAML IdP's entity ID to access all member accounts. Attach the read-only permission policies directly to this SCP, allowing compliance users to bypass local IAM role creation in the target accounts.
- CIn each target AWS account, create a SAML Identity Provider (IdP) referencing the compliance team's IdP metadata. Create an IAM role in each target account with a trust policy that specifies the SAML provider as the principal but allows the `sts:AssumeRole` action, and attach the required read-only permission policies to these roles.
- DCreate the SAML Identity Provider (IdP) only in the management account of the organization. Create a centralized IAM role in the management account using `sts:AssumeRoleWithSAML`. Rely on the Organization's root SCP to allow this role to dynamically assume local administrator roles in target accounts in the 'Compliance' OU.