https://pulumi.com logo
#general
Title
# general
s

square-market-74936

11/09/2023, 1:57 PM
Is there a way to force a refresh on a dependent resource? The use case: I have a custom provider that manages instance state (stopped/running). After a stop -> run cycle, some attributes of that instance may have changed, such as public IP and storage blocks. Those changes don't get reflected on instance exports though. Is there a way to make the change on the custom resource to force a refresh on the instance state?
g

great-sunset-355

11/09/2023, 3:30 PM
if it is a dynamic provider, you should be able to define which inputs cause replacement https://www.pulumi.com/docs/concepts/resources/dynamic-providers/
s

square-market-74936

11/09/2023, 3:36 PM
I am using a dynamic provider. But what I'm trying to do is to make a resource change in an
InstanceState
to call a refresh on the resource
Instance
. That's what I'm struggling to find in the documentation.