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

proud-dusk-33872

07/28/2021, 9:10 PM
Is it possible to impact / override how a resource is compared for changes vs how it will be deployed? An example would be a config store that uses a "sentinal" value to trigger when config has changed - I want to set the sentinal value as part of changes other values, but I don't want it detected as a change itself.
A transformation seems like it would affect both comparison and update.
l

little-cartoon-10569

07/28/2021, 9:11 PM
You would probably need to create your own (dynamic) provider to achieve this behaviour.
p

proud-dusk-33872

07/28/2021, 9:12 PM
Can you specify the provider per resource, or would we need to do something top level? Also, would we also need to subclass the resource (c#) or is there a "property bag" for extensibility properties
l

little-cartoon-10569

07/28/2021, 9:13 PM
You can specify the provider per resource, using the provider opt. I always do.
However to change a resource's provider without destroying and recreating the stack, I think you need to manually edit the stack.
👍 1
p

proud-dusk-33872

07/28/2021, 9:15 PM
Thanks for your help. I'll have a dig!