This message was deleted.
# typescript
s
This message was deleted.
s
Like the error message says,
accountId
is a
Promise<string>
so you can't so a comparison with a
string
in your
if
. You'll need to do this comparison in a context where the promise is unwrapped, either within a
.then
or after the variable is `await`ed
1
l
Often the best thing to do is to avoid this sort of issue. For example, perhaps you can infer whether or not to create the group from the stack instead of from the caller identity?
pulumi.getStack()
returns a simple string.
👍 2