Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.
This repository was archived by the owner on May 16, 2023. It is now read-only.

Not possible to nest similar structures #120

@npvisual

Description

@npvisual

Description

I was trying to nest several tenant organizational units that would follow the same construct (same Prod and Staging OUs with accounts in them) in the following way :

  • Root
    • Tenants
      • Tenant-A
        • Prod
        • Staging
      • Tenant-B
        • Prod
        • Staging
      • ...

However the way the org stack is built, there's already a construct with the same name, so the pipeline build will fail :

[Container] 2022/08/04 19:33:33 Running command npx cdk synth

47 | There is already a Construct with name 'Staging' in AwsOrganizationsStack [orgStack]
48 | Subprocess exited with error 1

The way we've gotten around that is by creating construct names that are built upon their parent's name (so in this case something like tenantA-prod.

Is this something that could be supported to allow for nesting and multiple accounts per tenant per environment ?

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