This message was deleted.
# general
s
This message was deleted.
s
Hi @incalculable-angle-91273! You’ll need to wait for the promise to resolve, since the function is asynchronous. You could do something like:
Copy code
const mySA = await gcp.serviceAccount.getAccount(…);

// now mySA is a GetAccountResult instead of a Promise<GetAccountResult>
Unfortunately you can’t use
await
at the top level of a program, so you may need to wrap your entire program in an async function and call that.
i
thanks @stocky-spoon-28903! trying it out now
👍 1