Migrate an AWS member account from AWS Organizations to AWS Control Tower - AWS Prescriptive Guidance

Migrate an AWS member account from AWS Organizations to AWS Control Tower

Rodolfo Jr. Cerrada, Amazon Web Services

Summary

This pattern describes how to migrate an AWS account from AWS Organizations, where it is a member account that's governed by a management account, to AWS Control Tower. By enrolling the account in AWS Control Tower, you can take advantage of preventive and detective controls and features that streamline your account governance. You might also want to migrate your member account if your AWS Organizations management account has been compromised, and you want to move member accounts to a new organization that is governed by AWS Control TowerAWS Control Tower. 

AWS Control Tower provides a framework that combines and integrates the capabilities of several other AWS services, including AWS Organizations, and ensures consistent compliance and governance across your multi-account environment. With AWS Control Tower, you can follow a set of prescribed rules and definitions that extend the capabilities of AWS Organizations. For example, you can use controls to ensure that security logs and necessary cross-account access permissions are created, and not altered.

Prerequisites and limitations

Prerequisites 

  • An active AWS account

  • AWS Control Tower set up in your target organization in AWS Organizations (for instructions, see Setting up in the AWS Control Tower documentation)

  • Administrator credentials for AWS Control Tower (member of the AWSControlTowerAdmins group)

  • Administrator credentials for the source AWS account

Limitations

  • The source management account in AWS Organizations must be different from the target management account in AWS Control Tower.

Product versions

  • AWS Control Tower version 2.3 (February 2020) or later (see release notes)

Architecture

The following diagram illustrates the migration process and reference architecture. This pattern migrates the AWS account from the source organization to a target organization that is governed by AWS Control Tower.  

AWS Control Tower enrollment process for an AWS account that's migrated to another organization and moved to a registered OU.

The enrollment process consists of these steps:

  1. The target organization sends an invitation for the account to join the organization. 

  2. The account accepts the invitation and becomes a member of the target organization.

  3. The account is enrolled in AWS Control Tower and moved to a registered organizational unit (OU). (We recommend that you check the AWS Control Tower dashboard to confirm the enrollment.) At this point, all controls that are enabled in the registered OU take effect.

Tools

AWS services

  • AWS Organizations is an account management service that enables you to consolidate multiple AWS accounts into a single entity (an organization) that you create and centrally manage.

  • AWS Control Tower integrates the capabilities of other services, including AWS Organizations, AWS IAM Identity Center, and AWS Service Catalog, to help you enforce and manage governance rules for security, operations, and compliance at scale across all your organizations and accounts in the AWS Cloud.

Epics

TaskDescriptionSkills required

Sign in to AWS Control Tower.

Sign in to the AWS Control Tower console as an administrator. 

Currently, there is no direct way to move an AWS account from a source organization to an organization in an OU that's governed by AWS Control Tower. However, you can extend AWS Control Tower governance to an existing AWS account when you enroll it into an OU that's already governed by AWS Control Tower. That's why you have to log in to AWS Control Tower for this step.

AWS Control Tower administrator

Invite the member account.

  1. Sign in to the AWS Organizations console, and navigate to the AWS accounts page. 

  2. On the Add an AWS account page, choose Invite an existing AWS account

  3. Complete the account information, including the 12-digit account number (without dashes) and the optional description and tags, and then choose Send invitation.

Important

Verify that no applications or network connectivity will be affected by the account transfer.

This action sends an invitation email with a link to the member account. When the account administrator follows the link and accepts the invitation, the member account appears in the AWS accounts page. For more information, see Managing account invitations in the AWS Organizations documentation.

AWS Control Tower administrator

Test applications and connectivity.

When the member account has been registered into the new organization, it appears in the OU within a root. It also appears in the AWS Control Tower console, flagged as not enrolled in accounts, because it hasn't yet been enrolled in the AWS Control Tower registered OU.

Verify the following:

  • Check the AWS Control Tower dashboard to see if there are any guardrail violations.

  • Check network connectivity (VPN or AWS Direct Connect) to make sure it wasn't affected by the transfer.

  • (Application owners) Test the applications that are associated with this account to verify that they run as expected, and that dependencies weren't affected by the account transfer.

AWS Control Tower administrator, Member account administrator, Application owners
TaskDescriptionSkills required

Review controls and fix any violations.

Review the controls that are defined in the target OU, especially the preventive controls, and fix any violations. 

A number of mandatory, preventive controls are enabled by default when you set up your AWS Control Tower landing zone. These can't be disabled. You must review these mandatory controls and fix the member account (manually or by using a script) before you enroll the account.

Note

Preventive controls keep AWS Control Tower registered accounts compliant and prevent policy violations. Any violation of preventive controls might affect enrollment. Detective control violations appear in the AWS Control Tower dashboard, if detected, after successful enrollment. They do not affect the enrollment process. For more information, see About controls in the AWS Control Tower documentation.

AWS Control Tower administrator, Member account administrator

Check for connectivity issues after fixing control violations.

In some cases, you might have to close specific ports or disable services to fix control violations. Make sure that applications that use those ports and services are remediated before you enroll the account.

Application owner
TaskDescriptionSkills required

Sign in to AWS Control Tower.

Sign in to the AWS Control Tower console. Use sign-in credentials that have administrative permissions for AWS Control Tower. Do not use the root user (management account) credentials to enroll an AWS Organizations account. This will display an error message.

AWS Control Tower administrator

Enroll the account.

  1. From the Account Factory page in AWS Control Tower, choose Enroll account.

  2. Fill in the details, including the email address associated with the account you want to enroll, the display name that will appear in AWS Control Tower, the IAM Identity Center email address, the first and last name of the account owner, and the OU in which you would like to enroll the account. The IAM Identity Center email address is your preferred user email address. You can use the same email address as the account email.

  3. Choose Enroll account.

For more information, see About enrolling existing accounts in the AWS Control Tower documentation.

AWS Control Tower administrator
TaskDescriptionSkills required

Verify the account.

From AWS Control Tower, choose Accounts. The account that you just enrolled has an initial state of Enrolling. When enrollment is complete, its state changes to Enrolled.

AWS Control Tower administrator, Member account administrator

Check for control violations.

Controls defined in the OU will automatically apply to the enrolled member account. Monitor the AWS Control Tower dashboard for violations and fix them accordingly. For more information, see About controls in the AWS Control Tower documentation.

AWS Control Tower administrator, Member account administrator

Troubleshooting

IssueSolution

You receive the error message: An unknown error occurred. Try again later, or contact AWS Support.

This error occurs when you use root user credentials (management account) in AWS Control Tower to enroll a new account. AWS Service Catalog can't map the Account Factory Portfolio or product to the root user, which results in the error message. To remediate this error, use non-root, full-access user (administrator) credentials to enroll the new account. For more information about how to assign administrative access to an administrative user, see Getting started in the IAM Identity Center documentation.

The AWS Control Tower Activities page displays a Get Catastrophic Drift action.

This action reflects a drift check of the service and does not indicate any issues with the AWS Control Tower setup. No action is required.

Related resources

Documentation

Tutorials and videos