Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creating new OU under Root #1681

Open
daskabe opened this issue Sep 17, 2024 · 0 comments
Open

creating new OU under Root #1681

daskabe opened this issue Sep 17, 2024 · 0 comments

Comments

@daskabe
Copy link

daskabe commented Sep 17, 2024

Hi, I am trying to create a new OU under root. But not sure what to put for parent. In aws console i already have root and few OU under it that i created manually.
Thank you for this helpful repo.

    const organization = Organization.of(scope, "Organization");
    organization.principal; // The AWS IAM organization principal

    // Create an organizational unit (OU)
    const organizationUnit = new OrganizationalUnit(this, "OrganizationalUnit", {
      organizationalUnitName: "MyFirstOU",
      parent: organization <--------???? 
    });

maybe its better to make parent a conditional param. and if its not specified new OrganizationalUnit() should just create the new org under root.

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant