A financial services company manages its multi-account environment using AWS Organizations. The architecture includes a Workloads Organizational Unit (OU) containing production and development accounts. The security team has deployed a cross-account IAM role named SecurityAuditRole in all member accounts to perform configuration audits.
The company has the following requirements:
1. Local administrators in the Workloads accounts (who possess administrator privileges) must be prevented from deleting or modifying the SecurityAuditRole.
2. All resources in the Workloads accounts must only be created in the us-east-1 and us-west-2 regions.
3. The SecurityAuditRole must be exempt from the regional restriction to allow it to scan for compliance violations in all AWS regions.
Which solution should a solutions architect implement to meet these requirements with the least administrative overhead?
- Attach a Service Control Policy (SCP) to the Workloads OU. In the first statement of the SCP, deny iam:* actions on the resource arn:aws:iam::*:role/SecurityAuditRole. In the second statement, deny all actions across all services if the aws:RequestedRegion condition key does not match us-east-1 or us-west-2, unless the aws:PrincipalARN matches arn:aws:iam::*:role/SecurityAuditRole. Ensure the default FullAWSAccess SCP remains attached to the OU, and keep existing local IAM policies in place.Cevap
- BAttach a Service Control Policy (SCP) to the Workloads OU that contains an Allow statement for all services in the us-east-1 and us-west-2 regions, and an Allow statement for the SecurityAuditRole in all regions. Detach the default FullAWSAccess SCP from the OU to enforce these parameters, and remove local IAM policies from the member accounts to ensure the SCP governs all operations.
- CConfigure a SAML 2.0 trust relationship for the SecurityAuditRole in all member accounts but omit the sts:AssumeRole action from the trust policy to prevent local modifications. Apply an IAM permissions boundary to all local administrator roles that denies resource creation outside of us-east-1 and us-west-2 and denies modifications to the SecurityAuditRole. Do not use SCPs since they cannot inspect the principal ARN of cross-account roles.
- DAttach an SCP to the Workloads OU that denies all actions outside of us-east-1 and us-west-2. To enable the SecurityAuditRole to scan other regions, configure the central security account's AWS-managed KMS key (aws/s3) policy to grant cross-account decrypt permissions to the SecurityAuditRole in all member accounts, and configure local IAM policies to restrict administrators from modifying the audit role.