worried-city-86458
09/17/2019, 6:40 PMconst 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!modern-bear-85657
09/18/2019, 8:28 PM