how do wildcards work with `pulumi refresh -x`?
# general
t
how do wildcards work with
pulumi refresh -x
?
I want to exclude all resources of type
gcp:serviceaccount/iAMMember:IAMMember
because I don't have permissions for those and I don't care about them
c
is there a common string pattern in the URNs for that resource type?
n
The urn format looks like this, so you should be able to do a wildcard that filters for those resource types (e.g. something like
pulumi refresh -x 'arn:pulumi:*$gcp:serviceaccount/iamMember:IAMMember::*'
)
t
I've tried many patterns like that, but none of them seem to exclude anything. That's why I'm wondering if the pattern-matching is somehow non-standard?
I ended up doing
pulumi refresh $(pulumi stack export | jq '.deployment.resources[].urn | select(test("iAMMember")) | "-x " + .' -r)