An enterprise manages its multi-account environment under AWS Organizations. The security team has attached a Service Control Policy (SCP) to the Production Organizational Unit (OU) to ensure that all API calls are blocked unless they originate from the corporate network egress IP range of .
The enterprise uses an external SAML 2.0 compliant Identity Provider (IdP) for identity federation. A Solutions Architect is establishing federated access to a member account within the Production OU for database administrators who require administrative access to Amazon RDS resources. The SAML identity provider object has already been created in the member account.
The architect needs to configure an IAM role named `DBAdminRole` in the member account to allow these users to federate and perform their tasks.
Which configuration must the architect implement to ensure database administrators can successfully federate and manage RDS resources?
- AConfigure the trust policy of the `DBAdminRole` with the federated SAML provider ARN as the principal and the `sts:AssumeRole` action. Rely on the Production OU SCP to grant the necessary Amazon RDS permissions to any user federating from , as SCPs automatically authorize federated sessions within their scope.
- Configure the trust policy of the `DBAdminRole` with the federated SAML provider ARN as the principal and the `sts:AssumeRoleWithSAML` action. Attach a local IAM permissions policy to `DBAdminRole` that explicitly grants the required Amazon RDS permissions, as the SCP restricts the maximum permissions but does not grant them.Answer
- CConfigure the trust policy of the `DBAdminRole` with the federated SAML provider ARN as the principal and the `sts:AssumeRoleWithWebIdentity` action. Attach a local IAM permissions policy to `DBAdminRole` that explicitly grants the required Amazon RDS permissions, and configure the Production OU SCP to explicitly allow `sts:AssumeRoleWithWebIdentity` to grant the federation privilege.
- DConfigure the trust policy of the `DBAdminRole` with `arn:aws:iam::aws:policy/AdministratorAccess` as the principal and the `sts:AssumeRoleWithSAML` action. Leave the `DBAdminRole` permissions policy empty, since the Production OU SCP's lack of an explicit deny for the corporate network implicitly grants full RDS permissions to the federated session.