A retail company is building a multi-account structure on AWS using AWS Organizations. The security team wants to mandate that all administrative and developer access across member accounts must go through AWS IAM Identity Center, which is integrated with their external identity provider. To enforce this, the team wants to prevent the creation of local IAM users and long-term access keys within all member accounts. The management account must remain exempt from this policy to allow break-glass access. Which solution should a solutions architect recommend to meet these requirements with the least administrative effort?
- ACreate a custom IAM policy in each member account that denies the creation of IAM users and access keys, and assign this policy to the root user of each member account to prevent any local administrator from creating new credentials.
- Configure AWS IAM Identity Center to handle federation. Create a Service Control Policy (SCP) that denies iam:CreateUser and iam:CreateAccessKey actions. Attach this SCP to the root of the organization.Cevap
- CCreate individual IAM users with long-term security credentials in each member account, and configure a script that syncs these users with the external identity provider. Apply an IAM policy to these users that denies the creation of further IAM resources.
- DEnable federation using AWS IAM Identity Center. Create a Service Control Policy (SCP) that denies the iam:CreateUser and iam:CreateAccessKey actions. Attach the SCP directly to the organization's management account and configure the root user of the management account to perform all daily administrative tasks.
Cevap
Configure AWS IAM Identity Center to handle federation. Create a Service Control Policy (SCP) that denies iam:CreateUser and iam:CreateAccessKey actions. Attach this SCP to the root of the organization.
The correct solution uses AWS IAM Identity Center to enable centralized federation. By creating a Service Control Policy (SCP) that denies the creation of IAM users and access keys, and attaching it to the root of the organization, the rule is enforced on all member accounts. Because SCPs do not apply to the management account, the management account remains exempt from the policy, allowing break-glass root access in emergencies.
Adım Adım Çözüm
Anahtar Kavram
Centralized Governance using SCPs and IAM Identity Center