Sub topic 11
Applying controls to OUs
This chapter assumes you have a launched landing zone, know your OU layout, and understand how service control policies (SCPs) work in AWS Organizations. Controls are the guardrails Control Tower applies to organizational units (OUs). You enable a control on an OU, and it applies to every account in that OU, including accounts enrolled later.
The three control behaviors
Each control has one behavior. The behavior decides how the control works and what it can do.
| Behavior | Implemented with | When it acts | Result |
|---|---|---|---|
| Preventive | SCPs (or resource control policies) | At request time | Blocks the action |
| Detective | AWS Config rules | After a resource changes | Reports compliance status |
| Proactive | CloudFormation hooks | Before CloudFormation provisions a resource | Fails the deployment if it is noncompliant |
Preventive controls do not appear in AWS Config. You see their effect as an access denied error. Detective controls never block anything. They flag a resource as compliant or noncompliant. Proactive controls only check resources created through CloudFormation.
Guidance levels
Controls also carry a guidance level.
- Mandatory controls are always on and you cannot disable them. Examples are the controls that protect the Log Archive and Audit accounts.
- Strongly recommended controls are optional but advised for most environments.
- Elective controls cover less common needs.
Enabling a control
Two things identify a control: the control ARN and the ARN of the target OU. First, find the OU with Organizations.
aws organizations list-roots
aws organizations list-organizational-units-for-parent \
--parent-id <root-id>Build the OU ARN from the output. The control ARN comes from the Control Tower controls library in the console, or from aws controltower and aws controlcatalog list calls. Then enable the control and check the result.
aws controltower enable-control \
--control-identifier <control-arn> \
--target-identifier <ou-arn> \
--region us-east-1
aws controltower list-enabled-controls \
--target-identifier <ou-arn> \
--region us-east-1enable-control is asynchronous. It returns an operation identifier, and the control is not active until the operation succeeds. Check the status with get-control-operation. Run these calls in the home Region.
Inheritance and scope
A control enabled on an OU applies to that OU and to every child OU beneath it. You cannot enable a control on the management account, and Control Tower does not govern it with SCPs. A control applies only in governed Regions. Activity in an ungoverned Region is not covered by Region-scoped controls, so choose governed Regions deliberately.
Detective and proactive controls report compliance per resource. Control Tower aggregates this status in the console. For detective controls, the Config rules live in each member account, and results flow to the Audit account.
Common errors
- Enablement fails with a conflict. Another Control Tower operation, such as account enrollment or a landing zone update, is still running. Wait for it to finish, then retry.
- A control seems to have no effect. Check the behavior. A detective control will never block an action, and a proactive control ignores resources not created through CloudFormation.
- An action is denied and nobody knows why. A preventive control on a parent OU may be the cause. Check the SCPs attached to each OU above the account.
- Controls drift. Changing Control Tower-managed SCPs or Config rules directly in Organizations or Config puts the control in a drifted state. Manage them only through Control Tower.
Exercise
A team's developers can still create unencrypted S3 buckets in an account, even though you enabled a detective control for bucket encryption on its OU. Why, and what would block the action?
Show answer
A detective control only evaluates resources after creation and reports them as noncompliant. It never blocks a request. To block the action, enable a preventive control that denies it. To catch it earlier for CloudFormation deployments, enable a proactive control.