Hi I’m just getting started with Pulumi (using Typ...
# general
l
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
Copy code
const org = aws.organizations.getOrganization({});
console.log(org.id)
b
you can use
pulumi.log
to log engine values, if you want to use
console.log
you'll need to use an
apply
l
aha, I wasn’t aware. thanks for pointing that out