https://pulumi.com logo
Title
s

stale-orange-47562

10/03/2022, 6:09 PM
Hi guys, does somebody know how to skip a pulumi policy when the resources are destroyed using, currently, we have some issues with some resources that we will destroy in the stack, the policies still validating those resources
b

billowy-army-68599

10/03/2022, 6:59 PM
this is a local policy?
s

stale-orange-47562

10/03/2022, 7:04 PM
No it isn't, the policy was deployed to our organization policies
b

billowy-army-68599

10/03/2022, 7:04 PM
can you share the error you’re getting when you try this?
s

stale-orange-47562

10/03/2022, 7:08 PM
sure, it is a policy violation error, we are validating for resource tags.
we get some resource tags, but when the de resource is destroyed the policy tries to get the tags for this resource and fails.
b

billowy-army-68599

10/03/2022, 7:10 PM
interesting, I don’t think that should happen. You can disable the policy for that stack as a workaround, but could you also submit an issue to support@pulumi.com ?
🙌 1
s

stale-orange-47562

10/03/2022, 7:10 PM
sure!
disabling the policy, it works