https://pulumi.com logo
Title
r

refined-carpet-42005

12/07/2022, 7:39 AM
Hey, is there a way to force a recreate on a resource if another resource was updated? For example, if resource
X
is updated I always want resource
Y
to update as well (but not the inverse). I've tried to use
depends_on
but it doesn't make a difference
e

echoing-dinner-19531

12/07/2022, 9:42 AM
Not currently. I raised a change a while ago to support this idea https://github.com/pulumi/pulumi/pull/11089 but it hasn't approved yet, internal discussion was that we should find a way to do this without adding a new option. No one's been prioritised to look into if that's possible or not yet though. It would probably help if you raised an issue with your use case, then we'll have an actual ticket to track.
r

refined-carpet-42005

12/07/2022, 12:11 PM
That's a shame! I created an issue here now: https://github.com/pulumi/pulumi/issues/11577