An enterprise is configuring identity federation using an on-premises SAML 2.0 Identity Provider (IdP) to allow database administrators to access multiple member accounts in AWS Organizations. The administrators must assume an IAM role named DB-Admin-Role in the target member accounts after authenticating. During initial testing, administrators receive an Access Denied error immediately when attempting to federate from the identity provider portal. A solutions architect reviews the trust policy configured for the DB-Admin-Role:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::123456789012:saml-provider/ADFS-IdP"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"SAML:aud": "https://signin.aws.amazon.com/saml"
}
}
}
]
}
Which of the following modifications to the trust policy will resolve this issue?
- Change the Action in the trust policy from sts:AssumeRole to sts:AssumeRoleWithSAML.Answer
- BChange the Action in the trust policy from sts:AssumeRole to sts:AssumeRoleWithWebIdentity.
- CChange the Federated principal to the account root ARN and move the SAML provider configuration to a conditional check.
- DAttach a Service Control Policy (SCP) at the root level of the organization that explicitly allows the sts:AssumeRole action for the SAML provider.