Control Tower that the parent organizational unit is not enrolled in AWS Control Tower, when it is
0
I get the following error when i try to programmatically create a new account in a OU: InvalidParametersException The parent organizational unit 'ou-xxx-xxx' is not enrolled in AWS Control Tower
It's an empty OU without any accounts, but it says registered in the control tower console
Topics
asked 6 months ago103 views
1 Answers
0
Ok so it's unclear how you are programmatically create new account.
However, I'm assuming you are using the Service Catalog API, as specified here.
Please make sure the ManagedOrganizationalUnit field has the specific format of OU_NAME (OU_ID)
As seen below:
{
pathId: "lpv2-7n2o3nudljh4e",
productId: "prod-y422ydgjge2rs",
provisionedProductName: "Example product 1",
provisioningArtifactId: "pa-2mmz36cfpj2p4",
provisioningParameters: [
{
key: "AccountEmail",
value: "abc@amazon.com"
},
{
key: "AccountName",
value: "ABC"
},
{
key: "ManagedOrganizationalUnit",
value: "Custom (ou-xfe5-a8hb8ml8)"
},
{
key: "SSOUserEmail",
value: "abc@amazon.com"
},
{
key: "SSOUserFirstName",
value: "John"
},
{
key: "SSOUserLastName",
value: "Smith"
}
],
provisionToken: "c3c795a1-9824-4fb2-a4c2-4b1841be4068"
}
answered 6 months ago
Relevant questions
Control Tower dependency to other regions?
Accepted Answerasked 2 years agoGrant Access to Control Tower created Cloudtrail S3 Bucket
asked 6 months agoControl Tower that the parent organizational unit is not enrolled in AWS Control Tower, when it is
asked 6 months agoIssue building Control tower landing zone on a new account - AWS Control Tower setup failed. Be sure your account is subscribed to the AWS EC2 service, then try again
Accepted Answerasked 5 months agoAWS Control Tower - Deployment Error
asked 10 months agoQuestion about Control Tower aws-controltower-SecurityNotifications
asked 6 days agoControl Tower - Unable to add new account to the Security OU?
Accepted Answerasked 4 months agoEnabling AWS Configuration on Control Tower Main Account
asked 6 months agoUnable to Launch AWS Control tower
asked 3 months agoCan I use Control Tower to automatically deploy infrastructure *other* than VPC
Accepted Answerasked 2 years ago