A technology company manages its multi-account environment using AWS Organizations. The security team has established a dedicated Sandbox Organizational Unit (OU) for developers to experiment with new services. Developers are granted administrator privileges in their respective sandbox accounts to allow rapid prototyping. The security team has deployed a security audit tool that relies on a specific IAM role named SecurityAuditRole in every sandbox account. The security team must ensure that developers cannot delete or modify this role, its attached policies, or its trust relationships, even though the developers have administrator permissions in their accounts. Which strategy should a solutions architect implement to meet these requirements with the least operational overhead?
- Attach a Service Control Policy (SCP) to the Sandbox OU with a Deny effect on IAM write actions, such as iam:DeleteRole, iam:PutRolePolicy, and iam:UpdateAssumeRolePolicy, when the resource is the ARN of the SecurityAuditRole. Use local IAM policies in the sandbox accounts to grant developer permissions.Answer
- BAttach a Service Control Policy (SCP) to the Sandbox OU that allows standard development actions but denies access to the SecurityAuditRole. Do not create local IAM policies or roles in the sandbox accounts, relying on the SCP to grant administrative access.
- CConfigure a SAML 2.0 federated identity provider in each sandbox account, and attach an IAM permissions boundary to the federated role that denies modifications to the SecurityAuditRole while allowing all other administrator permissions.
- DEstablish a centralized S3 bucket policy in a logging account that denies IAM deletion API requests originating from the sandbox accounts, and point the sandbox accounts' audit tools to write to this bucket.