-
Notifications
You must be signed in to change notification settings - Fork 6
CLI Usage
Huzefaaa2 edited this page Jan 26, 2026
·
13 revisions
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"pip install terraform-guardrailPyPI: https://pypi.org/project/terraform-guardrail/ (latest: 1.0.4)
terraform-guardrail scan ./examples
terraform-guardrail scan ./examples --state ./examples/sample.tfstate
terraform-guardrail scan ./examples --schema
terraform-guardrail scan ./examples --policy-bundle baseline
terraform-guardrail scan ./examples --policy-bundle-path ./policies/baseline.tar.gz
terraform-guardrail scan ./examples --fail-on mediumterraform-guardrail generate aws aws_s3_bucket --name demo
terraform-guardrail generate azure azurerm_storage_account --name demoterraform-guardrail policy list
terraform-guardrail policy fetch baseline --destination ./policies
terraform-guardrail policy fetch baseline-signed --destination ./policies
terraform-guardrail policy init --destination ./my-bundle --bundle-name guardrail
terraform-guardrail policy validate ./my-bundle.tar.gzPolicy bundle evaluation requires the opa CLI on your PATH.
terraform-guardrail registry-api --host 0.0.0.0 --port 8090