https://pulumi.com logo
Title
f

flat-sunset-12668

04/18/2023, 8:02 PM
Hello, I have a resource A (EC2 instance) that indirectly depends on a resource B (an S3 object). I have the following set on A: opts=pulumi.ResourceOptions( parent=self, depends_on=B) When I update B, I want Pulumi to replace A. Can I make this work in Pulumi? I do see the
replaceOnChanges
option, but it looks like that only works for resource properties?
m

melodic-tomato-39005

04/18/2023, 8:15 PM
f

flat-sunset-12668

04/18/2023, 8:25 PM
As I understand it, dependsOn will just ensure "resource creation, update, and deletion operations are done in the correct order." It won't cause a resource to be replaced if a dependency is updated.
e

echoing-dinner-19531

04/19/2023, 8:59 AM
https://github.com/pulumi/pulumi/issues/11577 <- Issue tracking a slightly more general feature that would enable this