Skip to content

Commit

Permalink
update readme for new url
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Feb 27, 2025
1 parent bc38f82 commit e780e0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This repository contains some [Rego](https://www.openpolicyagent.org/) policy fi
To use these policies, you can use the [Conftest](https://www.conftest.dev/) tool. You can use the following command to run the policies against your Terraform plan:

```bash
conftest test --all-namespaces --update git::https://github.com/lonegunmanb/policy-library-avmrego.git//policy <path-to-tfplan>
conftest test --all-namespaces --update git::https://github.com/Azure/policy-library-avm.git//policy <path-to-tfplan>
```

To generate a Terraform plan file:
Expand All @@ -20,7 +20,7 @@ Or you can use this library against the brown field infrastructure:

```bash
terraform show -json > state.json
conftest test --all-namespaces --update git::https://github.com/lonegunmanb/policy-library-avmrego.git//policy state.json
conftest test --all-namespaces --update git::https://github.com/Azure/policy-library-avm.git//policy state.json
```

## Supported Policies
Expand Down Expand Up @@ -79,7 +79,7 @@ conftest test --all-namespaces --update git::https://github.com/lonegunmanb/poli
To apply a subset of policies, you can specify the policy folders you want to apply, e.g.:

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

This will only apply the policies under `Azure-Proactive-Resiliency-Library-v2`.
Expand All @@ -99,7 +99,7 @@ exception contains rules if {
Save it to `exception.rego`, then you can apply the exception file with the policies:

```Bash
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>
conftest test --all-namespaces --update git::https://github.com/Azure/policy-library-avm.git//policy/Azure-Proactive-Resiliency-Library-v2 -p policy -p exception.rego <path-to-tfplan>
```

## Contribution
Expand Down

0 comments on commit e780e0c

Please sign in to comment.