A media company is setting up a multi-account AWS environment under AWS Organizations. The administrator has configured a corporate Identity Provider (IdP) to enable single sign-on into a member account using SAML 2.0. A SAML provider has been created in the member account. An IAM role has been created for the federated users, but during testing, users receive an Access Denied error when attempting to federate from the IdP portal. The administrator reviews the IAM role's trust policy and finds the following policy document:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::123456789012:saml-provider/CorporateIDP"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"SAML:aud": "https://signin.aws.amazon.com/saml"
}
}
}
]
}
Which of the following modifications to the trust policy is required to resolve this issue?
- Change the Action from sts:AssumeRole to sts:AssumeRoleWithSAML.Cevap
- BAdd sts:AssumeRoleWithSAML to a Service Control Policy (SCP) attached to the Organizational Unit (OU) containing the member account.
- CChange the Action from sts:AssumeRole to sts:AssumeRoleWithWebIdentity and configure an OIDC identity provider in the member account.
- DChange the Federated Principal from the SAML provider ARN to the ARN of the AWS Organization's management account.