we have certain resources which shouldn't be changed during certain hours. So I want to use jq to check which resources will be changed, and if one of the restricted resources is going to be changed during the restricted hours, just
exit 1
and fail the apply before applying.
p
PePe Amengual
03/30/2023, 3:00 PM
can't you use opa policies with contest?
j
jwr
03/30/2023, 3:10 PM
I'm not opposed to using proper opa policies, but I'm not sure those can accomplish what I want.
For example, if I did it on my own in bash, this would meet my requirements: https://pastebin.com/raw/ERbAdn9Q
Can opa policies do that?