AWS Certified Solutions Architect – Professional
AWS Control Tower controls and Account Factory for SAP-C03
The AWS Control Tower guide describes three control behaviors. Preventive controls disallow actions, mainly with SCPs. Detective controls report noncompliant resources with AWS Config rules. Proactive controls check resources in CloudFormation hooks before they are provisioned. Controls apply to whole OUs, and Account Factory provisions accounts only into OUs that have the AWSControlTowerBaseline enabled.
Preventive, detective and proactive controls
A preventive control disallows the action that would break the policy. Control Tower implements preventive controls with service control policies, resource control policies and declarative policies from AWS Organizations. Their status is enforced or not enabled, and they are supported in all AWS Regions.
A detective control finds noncompliant resources and shows them on the dashboard. It is an AWS Config rule, its status is clear, in violation or not enabled, and it works only in the Regions that Control Tower supports. It reports a violation and does not stop it.
A proactive control checks a resource before it is provisioned and stops a noncompliant one from being created. It runs as a CloudFormation hook, in the preCreate and preUpdate handlers, so it sees only resources created or updated through CloudFormation stack operations. AWS says these controls may not affect requests made through the console, the AWS APIs, SDKs or other infrastructure-as-code tools. A rule that must refuse a request from any tool needs a preventive control.
Guidance is a separate label: mandatory, strongly recommended or elective. It is independent of the behavior. Strongly recommended and elective controls apply at the OU level, to all accounts in that OU. From landing zone version 4.0, mandatory controls are no longer applied by default.
OUs, baselines and Account Factory
Because a control covers every account in the OU it is enabled on, accounts that need different sets of controls belong in different OUs.
Registering an OU in Control Tower enables the AWSControlTowerBaseline on it. That baseline sets up the resources and controls member accounts need for compliance monitoring, auditing and security monitoring. Account Factory can provision, update or customize a single account only in an OU that has this baseline enabled. An OU that exists only in AWS Organizations cannot receive an Account Factory account until then.
By default, the IAM Identity Center users who provision accounts must be in the AWSAccountFactory group or the management group. Accounts created through Account Factory can later be updated, moved to another OU, unenrolled or closed.
Customizations for AWS Control Tower (CfCT) adds your own resources on top. Its customizations are CloudFormation templates, SCPs and RCPs, deployed to individual accounts or to OUs. It is integrated with Control Tower lifecycle events, so when Account Factory creates an account, the resources attached to that account are deployed automatically. A target OU in CfCT must also have the AWSControlTowerBaseline enabled.
Drift when accounts or policies change outside Control Tower
Moving an account from a registered OU to another OU creates moved member account drift. For an account from Account Factory you can resolve it by choosing Update account in the Control Tower console, by re-registering the OU that now contains the account, or by updating the provisioned product. Re-registering is the fastest route for several accounts. In an OU with more than 1,000 accounts, each moved account must be updated individually.
A move with auto-enrollment turned off can also leave inheritance drift. Control Tower applies the destination OU's controls but does not remove detective and proactive controls inherited from the previous OU. Updating the account, re-registering the OU and the ResetEnabledControl API do not remove them. Each leftover control has to be disabled with the DisableControl API. Preventive controls are not subject to this drift.
Auto-enrollment is a landing zone setting. When it is on, Control Tower applies the destination OU's baselines and control configurations to an account as it is moved. It does not repair drift left by an earlier move.
Editing or detaching a control's SCP in AWS Organizations is drift too. Re-register the OU, or update the landing zone, to restore it.
Region deny
Control Tower has two Region deny controls. AWS-GR_REGION_DENY applies to the landing zone as a whole, is set on the Landing zone settings page, and cannot be configured for individual OUs. CT.MULTISERVICE.PV.1 is enabled on the OUs you choose.
The landing zone control blocks operations in every Region that is not selected for governance, and in Regions where Control Tower is not available. Actions continue as usual in governed Regions. It applies to all top-level OUs that have the AWSControlTowerBaseline enabled and is inherited by the OUs below them, so an OU that was never registered is not covered. The home Region cannot be denied.
Certain global services, such as IAM and AWS Organizations, are exempt. The control's SCP lists them in a NotAction element. It is an elective, preventive control.
AWS warns that after the control is applied you have no access to resources in the denied Regions. Move or copy anything you need out of those Regions before you enable it.
Where the exam catches people
- Believing a proactive control blocks console, API or Terraform requests: it is a CloudFormation hook and checks only CloudFormation stack operations.
- Believing a detective control stops a noncompliant change: it reports the violation through an AWS Config rule.
- Believing two accounts in one OU can have different sets of controls: a control applies to every account in the OU, so use separate OUs.
- Believing Account Factory can create an account in any OU made in AWS Organizations: the OU needs the
AWSControlTowerBaseline, which registering it enables. - Believing data in a Region can be moved out after Region deny is enabled: access to resources in denied Regions is lost once the control applies.