This message was deleted.
# golang
s
This message was deleted.
l
Gets/Invokes are typically synchronous in the pulumi provider SKDs. This means that outputs wont be compatible. So to you output values with a sync invoke/get you'll need to unwrap the outputs via
All
and
Apply
https://www.pulumi.com/docs/intro/concepts/programming-model/#apply https://www.pulumi.com/docs/intro/concepts/programming-model/#all
something like:
Copy code
p.Name.Apply(func(n){
// do the GetDefaultServiceAcc call here
})
Whatever you return from that call will be a new output. Note that it's not advised to create resources from within applies as this can break the dependency graph, but reading like this should be fine.
b
Ah, I see that makes sense. I did not know that they were synchronous. Thanks!