Skip to content

A starter template for running Terraform and Checkov in Azure

License

Notifications You must be signed in to change notification settings

MilheiroSantos/checkov-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

checkov-example

A starter template for running Terraform and Checkov in Azure

How to run the example

Install Checkov with:

$ pip install checkov

On the example_storage_account/src folder, create the tfplan with the input variable environment set to dev:

$ terraform init && terraform plan --var environment=dev --out terraform.tfplan.binary

Convert the binary tfplan to JSON with:

$ terraform show --json terraform.tfplan.binary | jq '.' > terraform.tfplan.json

On the example_storage_account folder, run Checkov with the plan and custom policies with:

$ checkov -f src/terraform.tfplan.json --external-checks-dir policies

About

A starter template for running Terraform and Checkov in Azure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published