An international retail consortium manages its multi-account structure using AWS Organizations. The security team has established a dedicated workloads Organizational Unit (OU) that houses several production and development member accounts. Each member account has local administrator access granted to the respective engineering leads.
The security team has a new compliance directive: only a centralized, pre-approved IAM role named AnalyticsConsumer (which will be deployed across all member accounts) must be permitted to run queries using Amazon Athena. Local administrators must be blocked from executing Athena queries under their own sessions. Crucially, the design must prevent these local administrators from tampering with the AnalyticsConsumer role, deleting it, or recreating a role with the same name to bypass the restriction.
Which solution represents the most secure and operationally efficient configuration to meet these requirements?
- Deploy the AnalyticsConsumer role across the member accounts using AWS CloudFormation StackSets. Attach an SCP to the workloads OU that denies all athena:* actions if the aws:PrincipalARN condition is not like arn:aws:iam::*:role/AnalyticsConsumer. Attach a second SCP to the workloads OU that denies all iam:* actions on the resource arn:aws:iam::*:role/AnalyticsConsumer unless the principal is the AWS CloudFormation StackSets execution role.Cevap
- BAttach an SCP to the workloads OU that allows athena:* actions only for the AnalyticsConsumer role, and denies Athena actions for all other roles. Create a local IAM policy in each member account that restricts local administrators from running iam:DeleteRole or iam:UpdateRole on any role prefixed with Analytics.
- CDeploy the AnalyticsConsumer role using AWS CloudFormation StackSets. Use AWS Resource Access Manager (RAM) to share the AnalyticsConsumer role from the management account to all member accounts in the workloads OU. Attach an SCP to the workloads OU that denies all athena:* actions if the request is not initiated by a shared RAM principal.
- DDeploy the AnalyticsConsumer role across the member accounts. Attach an SCP to the workloads OU that denies athena:* actions unless the principal is the AnalyticsConsumer role. To prevent local administrators from modifying the role, configure an AWS KMS customer managed key in the security account and configure the key policy to restrict IAM role modifications by local administrators.