A company's security team is setting up identity federation to allow corporate users to access the AWS Management Console of a member account. The users will authenticate using an external SAML 2.0 Identity Provider (IdP). An IAM SAML identity provider entity has been created in the target AWS account. The solutions architect now needs to configure the trust policy of the IAM role that the federated users will assume. Which configuration must be specified in the trust policy to allow users authenticated by the SAML IdP to assume this role?
- Set the Principal to the Amazon Resource Name (ARN) of the SAML provider entity, and set the Action to sts:AssumeRoleWithSAML.Cevap
- BSet the Principal to the Amazon Resource Name (ARN) of the SAML provider entity, and set the Action to sts:AssumeRole.
- CConfigure a Service Control Policy (SCP) at the Organizational Unit level that allows sts:AssumeRoleWithSAML, assuming it will automatically delegate the permission to the role's trust policy.
- DSet the Principal to the AWS account ID of the AWS Organizations management account, and set the Action to sts:AssumeRoleWithWebIdentity.
Cevap
Set the Principal to the Amazon Resource Name (ARN) of the SAML provider entity, and set the Action to sts:AssumeRoleWithSAML.
To establish federated access using SAML 2.0, the target IAM role's trust policy must trust the IAM SAML identity provider entity. This is configured by specifying the SAML provider's ARN in the Principal block and authorizing the sts:AssumeRoleWithSAML action.
Adım Adım Çözüm
Anahtar Kavram
SAML 2.0 identity federation trust policy configuration