https://pulumi.com logo
#typescript
Title
# typescript
w

worried-city-86458

09/17/2019, 6:40 PM
Copy code
const callerIdentity = aws.getCallerIdentity();
const accountId = callerIdentity.accountId;
Just came across this funk after wondering how to await a promise in
index.ts
. Looking through the source it looks like Pulumi handles this using a deasync library followed by "lifting" the promised object behind the scenes. Even the JS/TS devs here hadn't heard of deasync. Cool stuff!
m

modern-bear-85657

09/18/2019, 8:28 PM
3 Views