https://pulumi.com logo
#general
Title
# general
c

colossal-room-15708

07/10/2019, 2:22 AM
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

white-balloon-205

07/10/2019, 2:08 PM
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