Sub topic 12
Creating and enrolling accounts with Account Factory
This chapter assumes you have a running landing zone, at least one OU other than Security, and access through IAM Identity Center. It also assumes you know what an OU is and what controls do. Account Factory is the Control Tower feature that creates new accounts and brings existing ones under governance.
What Account Factory does
Account Factory is a provisioning workflow built on AWS Service Catalog. You give it an account name, a root email address, an OU, and an IAM Identity Center user. It then does the following:
- Creates the account in AWS Organizations, or takes an existing one.
- Moves the account into the target OU.
- Applies the baseline: CloudTrail, AWS Config, and the roles that Control Tower needs.
- Applies the controls enabled on that OU.
- Grants the Identity Center user access to the account.
Every account created this way starts with the same guardrails and the same logging setup. This is the main reason to use it instead of creating accounts by hand.
Creating a new account
In the console, open Control Tower, choose Account factory, then Create account. Fill in these fields:
- Account email: must be unique across all of AWS and not used by another account.
- Account name: a label that shows in Organizations and Identity Center.
- IAM Identity Center user: the person who gets access. The email can be a new user.
- Organizational unit: where the account will live.
Provisioning usually takes several minutes. Only one Account Factory operation runs at a time, so a second request waits for the first.
You can also provision through Service Catalog from the CLI or from automation. The console path is enough for most teams at the start.
Enrolling an existing account
An existing account can join the landing zone. Open the account in Account factory, choose Enroll account, and pick the target OU.
Before you enroll, check these points:
- The account must be in the same AWS Organization as the management account.
- It needs the role
AWSControlTowerExecutionwith a trust policy for the management account. Without this role, enrollment fails. - AWS Config must not already have a recorder or delivery channel that conflicts with Control Tower's. Remove or adjust these first.
Verifying the result
Check that the account is in the OU you expect, and that it is enrolled.
aws organizations list-accounts-for-parent \
--parent-id <ou-id>
aws controltower list-enabled-controls \
--target-identifier <ou-arn> \
--region us-east-1The first command lists accounts under the OU. The second shows the controls that the new account now inherits.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Provisioning fails at the start | Email is already used by another AWS account | Use a unique address, such as a plus-address on a shared mailbox |
| Enrollment fails | `AWSControlTowerExecution` role is missing or has the wrong trust | Create the role in the account and trust the management account |
| Enrollment fails on Config | An existing recorder or delivery channel conflicts | Delete or change it, then retry |
| Request stays pending | Another Account Factory operation is running | Wait for it to finish |
| Account is in the wrong OU | Wrong OU chosen during the request | Re-register the OU, or update the account in Account Factory |
Updating an account
When the landing zone is updated, accounts can fall behind the current baseline. Use Update account in Account Factory to bring an account up to date. The next chapter covers drift and updates in detail.
Exercise
You need to bring a production account that already exists into a governed OU. Name two things you should check before you start the enrollment, and one risk of enrolling it.
Show answer
Check that the account is in the same Organization and has the AWSControlTowerExecution role trusting the management account. Also check that no conflicting AWS Config recorder or delivery channel exists. The risk is that the OU's preventive controls start applying and may block actions the workloads already perform.
Exercise
Why can you not start two Account Factory requests at the same moment, and what do you see when you try?
Show answer
Account Factory runs one provisioning operation at a time. A second request is not run in parallel, so it waits or stays pending until the first operation finishes.