Any reason a policy violation wouldn't be printed ...
# python
a
Any reason a policy violation wouldn't be printed to the
pulumi preview
output? i ran
pulumi preview --policy-pack my-pack --policy-pack-config my-config.json
, i see the pack named under "Policy Packs run", and i know
report_violation("my message")
was executed because i stepped through it in the debugger. This is with a custom Python pack i started writing. Running against an AWSGuard TypeScript policy does show policy violations.
g
I've not seen this before in my experience and I use policy packs a lot. If you could put together a small project that reproduces this and open an issue at https://github.com/pulumi/pulumi-policy, that would be great!
a
My best guess is that i was overlooking an error message in Diagnostics, because it's working today