Hi. I’m attempting to do a regular function call (...
# general
g
Hi. I’m attempting to do a regular function call (to a non-Pulumi SDK) using values from a resource I’ve created with Pulumi. To access the concrete values I’m doing this inside an ApplyT. It seems like this isn’t being executed. Could this be because I’m not depending on any values output from the function, so that this has no bearing on the Pulumi resource graph? What would be the correct way to do something like this?
b
I need to double check, but this would only happen on resource creation I think, does the resource you’re using for
ApplyT
already exist?
g
Yes, it does. Looks like we were running our code on creation, not on subsequent no-op reconciliations, and the way ApplyT works obscured an error that was happening as well. Looks like using stack exports and handling this outside of our Pulumi program is gonna be a bit nicer, in this case