Is there a way to make Pulumi create a resource in...
# general
m
Is there a way to make Pulumi create a resource initially, but then ignore state differences thereafter? For example, I deploy a Helm Chart into Kubernetes which has some mutating webhooks. If those modify the existing resources, Pulumi tries to update them during the next apply. I’d rather just tell it to ignore those completely, since likely I’ll never need Pulumi to update them…
c
m
Thanks. I was looking at that, but it seemed like you had to target specific properties to ignore, so I wasn’t sure how to fit it to this case. Is there a way to use a wildcard or something to “ignore everything”?
For anyone with similar questions, I used the
transformations
option to check if
args.name
and/or
args.type
were the ones I was looking for and then returned updated args with
ignoreChanges: ['<prop>']
based on what the output of
pulumi preview
showed as changes (that I wanted to ignore)
c
I haven’t tried, but I wonder if you can just do something akin to
opts=pulumi.ResourceOptions(ignore_changes=aws.xxx.WhateverResource.__dict__.keys())
to blanket ignore all properties for a given resource (for Python at least)