Hello, I have a resource A (EC2 instance) that ind...
# getting-started
f
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
f
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
https://github.com/pulumi/pulumi/issues/11577 <- Issue tracking a slightly more general feature that would enable this