Skip to content

Commit

Permalink
fix(controltower): support creation of new account in nested OU with …
Browse files Browse the repository at this point in the history
…Control Tower
  • Loading branch information
crissupb authored and rgd11 committed Jun 6, 2022
1 parent a0bc2e3 commit 3a76ce2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ export async function handler(event: AWSLambda.CloudFormationCustomResourceEvent
name: parsedDataBag['name'],
email: account['acceleratorKey'],
description: parsedDataBag['description'],
organizationalUnitId: await getOuName(account['ouName']),
// formatting for CT requirements to support nested ou's
organizationalUnitId: (await getOuName(account['ouName'])) + ` (${accountOu.awsKey})`,
};
const params: PutCommandInput = {
TableName: newCTAccountsTableName,
Expand Down

0 comments on commit 3a76ce2

Please sign in to comment.