A company implements a multi-account strategy using AWS Organizations. The IT security team wants to configure federation with an external SAML 2.0 Identity Provider (IdP) to allow users to authenticate and directly access resources in a shared services account and multiple production accounts. The solutions architect needs to create an IAM role in each AWS account that will be assumed by the federated users. Which configuration must the solutions architect apply to the trust relationship of the IAM roles to establish trust with the SAML IdP and ensure that only authenticated federated users from the company's IdP can assume these roles?
- ACreate a SAML identity provider in the organization's management account. Configure the trust policy of the target IAM roles in each member account by setting the Principal to the management account's SAML provider and the Action to sts:AssumeRoleWithWebIdentity.
- BAttach a Service Control Policy (SCP) to the organization's root that allows access from the corporate SAML provider's identity URL, and configure the member account IAM roles to inherit this federated access without defining local trust policies.
- Create a SAML identity provider in each AWS account's IAM. Configure the trust policy of the target IAM roles in each account by setting the Principal to the ARN of the local SAML identity provider and the Action to sts:AssumeRoleWithSAML.Cevap
- DCreate a SAML identity provider in each AWS account's IAM. Configure the trust policy of the target IAM roles in each account by setting the Principal to the corporate Identity Provider's external metadata endpoint and the Action to sts:AssumeRole.
Cevap
Create a SAML identity provider in each AWS account's IAM. Configure the trust policy of the target IAM roles in each account by setting the Principal to the ARN of the local SAML identity provider and the Action to sts:AssumeRoleWithSAML.
The correct configuration requires creating a SAML 2.0 identity provider object in each target AWS account where the federated roles reside. The trust policy of these roles must reference the ARN of the local SAML provider object as the federated Principal and specify the sts:AssumeRoleWithSAML action to allow authentication from the external identity provider.
Adım Adım Çözüm
Anahtar Kavram
Multi-Account SAML 2.0 Federation configuration using AWS IAM and AWS STS
Tahmini Süre:2m 0s