https://pulumi.com logo
Title
l

late-chef-72896

12/03/2021, 3:21 PM
Hi I’m just getting started with Pulumi (using Typescript ) and I’m currently building some stuff to configure AWS Organizations (accounts. policies etc..). As a test I’m now looking into the
getOrganization
function and to start simple I want to get the org ID. Based on how that is used in this example https://www.pulumi.com/registry/packages/aws/api-docs/organizations/getorganization/#sns-topic-that-can-be-interacted-by-the-organization-only I assumed I could use this
const org = aws.organizations.getOrganization({});
console.log(org.id)
b

billowy-army-68599

12/03/2021, 3:23 PM
you can use
pulumi.log
to log engine values, if you want to use
console.log
you'll need to use an
apply
l

late-chef-72896

12/03/2021, 3:26 PM
aha, I wasn’t aware. thanks for pointing that out