A company is implementing a multi-account federation solution using an external SAML 2.0 Identity Provider (IdP). The solutions architect configures a SAML provider in the primary AWS account and wants to allow federated users to assume a specific IAM role across multiple target member accounts in the AWS Organization. During testing, users receive an access denied error when attempting to authenticate and assume the role in the member accounts. Which of the following configurations is required to successfully establish this federated access to the target member accounts?
- ACreate the SAML Identity Provider (IdP) only in the primary management account. In each target member account, create an IAM role with a trust policy that allows the sts:AssumeRoleWithSAML action and references the ARN of the SAML IdP in the primary management account as the principal.
- Create a SAML Identity Provider (IdP) in each target member account. In each member account, create an IAM role with a trust policy that allows the sts:AssumeRoleWithSAML action and specifies the local SAML IdP as the principal.Cevap
- CCreate a SAML Identity Provider (IdP) in each target member account. In each member account, create an IAM role with a trust policy that allows the sts:AssumeRole action and specifies the local SAML IdP as the principal.
- DAttach a Service Control Policy (SCP) to the organization's root that allows the sts:AssumeRoleWithSAML action for the external identity provider, thereby granting federated access to all member accounts without needing to define local IAM roles or trust relationships in each target account.
Cevap
Create a SAML Identity Provider (IdP) in each target member account. In each member account, create an IAM role with a trust policy that allows the sts:AssumeRoleWithSAML action and specifies the local SAML IdP as the principal.
For direct SAML federation to work in a multi-account environment, a SAML Identity Provider (IdP) must be created in each target member account. The IAM role in each member account must have a trust policy that allows the sts:AssumeRoleWithSAML action and references the local SAML IdP as the principal. This allows the SAML assertion to be directly validated and exchanged for temporary security credentials in that specific account.
Adım Adım Çözüm
Anahtar Kavram
Multi-Account Identity and Access Management Federation