Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Feb 17, 2025
1 parent b7f105b commit bd888be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ package Azure_Proactive_Resiliency_Library_v2
import rego.v1
exception[rules] {
exception contains rules if {
rules = ["use_nat_gateway_instead_of_outbound_rules_for_production_load_lalancer", "storage_accounts_are_zone_or_region_redundant"]
}
```

Save it to `exception.rego`, then you can apply the exception file with the policies:

```Bash
conftest test --all-namespaces -p exception.rego -p <path-to-policies>/policy <path-to-tfplan>
conftest test --all-namespaces --update git::https://github.com/lonegunmanb/policy-library-avmrego.git//policy/Azure-Proactive-Resiliency-Library-v2 -p policy -p exception.rego <path-to-tfplan>
```

## Contribution
Expand Down

0 comments on commit bd888be

Please sign in to comment.