``` const callerIdentity = aws.getCallerIdentity()...
# typescript
w
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