To create an AWS Organizations OU (<https://www.pu...
# general
c
To create an AWS Organizations OU (https://www.pulumi.com/docs/reference/pkg/python/pulumi_aws/organizations/#pulumi_aws.organizations.OrganizationalUnit) I have to provide the
parent_id
property, which in a lot of cases is the root of the Organization. I can't find a way, native to pulumi, to get information about the Organization if the Organization has already been created by someone outside of pulumi.
w
It does not appear there is any datasource in the AWS Terraform Provider yet for this. In the meantime, you can use the AWS SDK directly to get it via calling the
DescribeOrganization
API. https://docs.aws.amazon.com/organizations/latest/APIReference/API_DescribeOrganization.html