Hey! Is it possible to ignore a resource when runn...
# general
r
Hey! Is it possible to ignore a resource when running
pulumi refresh
? We want to enable drift detection but we're unable to run
pulumi refresh
on our aws msk resource since we don't allow non acl access
a
So you don't want to retrieve the actual state from AWS – just preview current declaration against the Pulumi state? Would
--preview-only
be an option?
Copy code
--preview-only     Only show a preview of the refresh, but don't perform the refresh itself
r
Posted in another thread here: https://pulumi-community.slack.com/archives/CDE799L1M/p1726145441947699 sorry -- perhaps should have kept it to one thread but I'm having the same issue there when I do
--preview-only
But I do want to retrieve the actual state from AWS, just not for some specific resources
a
You can only target resources explicitly via multiple
--target <urn>
but the option of skipping certain ones doesn't seem to be implented yet: https://github.com/pulumi/pulumi/issues/9346