Managing legacy (pre-existing) accounts ¶
User guide ¶
Pre-requisites ¶
You must have your AWS Organization deployed and access to your Management account as described in the /user-guide/user-guide/organization/organization-init section.
Invite AWS pre-existing (legacy) accounts to your AWS Organization ¶
AWS Org pre-existing accounts invitation
-
Via AWS Web Console: from your
project-root
account invite the pre-existingproject-legacy
(1 to n accounts). -
Via AWS Web Console: in
project-legacy
create theOrganizationAccountAccessRole
IAM Role with Admin permissions.Should follow Creating the OrganizationAccountAccessRole in an invited member account section.
-
Import your
project-legacy
account as code.- Update the following variables in
./@bin/makefiles/terraform12/Makefile.terraform12-import-rm
TF_IMPORT_RESOURCE := "aws_organizations_organizational_unit.bbl_apps_devstg" TF_IMPORT_RESOURCE_ID := "ou-oz9d-yl3npduj" TF_RM_RESOURCE := "aws_organizations_organizational_unit.bbl_apps_devstg"
- Then from the root context ->
cd ./root/organization make import
TODO THIS STEP MUST BE UPDATED WITH THE
Leverage CLI
WORKFLOW
- Update the following variables in