Skip to content

creating new OU under Root #1681

@daskabe

Description

@daskabe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions