A logistics company is designing its AWS Organizations multi-account structure. To enforce compliance, the security team requires that in all development member accounts:
1. Developers must not be able to delete any Amazon S3 buckets.
2. Developers must not be able to delete or modify the configuration of the centralized IT security roles (which are named with a 'SecurityAdmin-' prefix).
3. Developers must still be able to create and manage their own test S3 buckets and IAM roles for daily tasks.
The company uses AWS IAM Identity Center to federate developer access.
Which solution should a solutions architect implement to meet these requirements with the least operational overhead?
- ACreate a Service Control Policy (SCP) that explicitly allows the 'iam:CreateRole' and 's3:CreateBucket' actions, and denies 's3:DeleteBucket' and any modifications to roles named with a 'SecurityAdmin-' prefix. Attach this SCP to the Development Organizational Unit (OU) and remove local IAM policies from the developers' IAM Identity Center permission sets.
- BModify the trust relationship policy of the 'SecurityAdmin-' roles in each development account to deny all actions from developer IAM Identity Center roles. Attach a Service Control Policy (SCP) to the Development Organizational Unit (OU) that denies 's3:DeleteBucket' on all resources.
- Attach a Service Control Policy (SCP) to the Development Organizational Unit (OU) that denies the 's3:DeleteBucket' action on all resources, and denies IAM role modification and deletion actions if the resource path matches 'arn:aws:iam::*:role/SecurityAdmin-*'. Configure the developers' IAM Identity Center permission sets to allow S3 and IAM administrative actions.Cevap
- DConfigure default encryption for S3 buckets in the development accounts using the AWS-managed key 'aws/s3'. Modify the policy of the 'aws/s3' key to deny 's3:DeleteBucket' permissions to developers. Use a Service Control Policy (SCP) attached to the Development Organizational Unit (OU) to deny modifications to roles starting with 'SecurityAdmin-'.
Cevap
The correct solution is to attach a Service Control Policy (SCP) to the Development Organizational Unit (OU) that denies bucket deletion globally and restricts modification of roles with the 'SecurityAdmin-' prefix, while using IAM Identity Center permission sets to grant developers active permissions to manage S3 and IAM.
The correct solution uses an SCP to restrict the deletion of S3 buckets and modification of specific IAM roles starting with 'SecurityAdmin-' across the member accounts in the Development OU. Because SCPs do not grant permissions, the developers' active permissions to create and manage their resources are assigned via IAM Identity Center permission sets.
Adım Adım Çözüm
Anahtar Kavram
Multi-Account Governance using Service Control Policies (SCPs) and IAM Identity Center
Tahmini Süre:2m 0s