A financial services company is implementing a multi-account strategy using AWS Organizations. The organization contains three main Organizational Units (OUs): CoreServicesOU, SecurityOU, and WorkloadsOU. The WorkloadsOU has two child OUs: ProductionOU and DevelopmentOU.
The security team has the following requirements:
1. No IAM user or role within any member account in the WorkloadsOU should be able to delete or modify the configurations of an IAM role named SecurityComplianceRole.
2. Developers in the DevelopmentOU must be allowed to deploy and test new AWS services freely, but they must be restricted from launching Amazon EC2 instances of any type other than the t3 or m5 families.
3. The administration of resources within the SecurityOU must not be impacted by these policies.
Which combination of Service Control Policies (SCPs) and OU attachments will meet these requirements with the least operational overhead?
- Attach a Service Control Policy (SCP) to the WorkloadsOU that denies iam:DeleteRole, iam:DeleteRolePolicy, and iam:DetachRolePolicy actions on the SecurityComplianceRole resource. Attach another SCP to the DevelopmentOU that denies ec2:RunInstances if the ec2:InstanceType is not like t3.* or m5.*. Keep the default FullAWSAccess SCP attached at all levels.Answer
- BAttach a Service Control Policy (SCP) to the organization root that denies iam:DeleteRole, iam:DeleteRolePolicy, and iam:DetachRolePolicy actions on the SecurityComplianceRole resource. Remove the FullAWSAccess SCP from the DevelopmentOU and attach an SCP that explicitly allows ec2:RunInstances for t3.* and m5.* instance types.
- CConfigure an IAM permissions boundary in each member account that denies modifications to the SecurityComplianceRole and restricts ec2:RunInstances to t3.* and m5.* instance types. Apply this permissions boundary automatically to all federated roles by configuring it at the AWS Organizations root level.
- DAttach a Service Control Policy (SCP) to the WorkloadsOU that denies iam:DeleteRole, iam:DeleteRolePolicy, and iam:DetachRolePolicy on the SecurityComplianceRole unless the caller is utilizing an AWS-managed KMS key. Remove the FullAWSAccess SCP from the organization root to enforce default-deny behavior for all non-approved services.