mdb / terraform-opa-demo

A simple example showing automated Terraform plan analysis using the Open Policy Agent policy-as-code framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform

terraform-opa-demo

A relatively simple and largely contrived example showing automated Terraform plan analysis using the Open Policy Agent policy-as-code framework.

Usage

terraform-opa-demo assumes you're running Docker.

Execute a terraform plan (see the Makefile for details):

make tf-plan

Run tests verifying the correctness of the policy.rego file and evaluate the Terraform plan JSON using the expressed policy (see the Makefile for details):

make opa-eval

About

A simple example showing automated Terraform plan analysis using the Open Policy Agent policy-as-code framework.


Languages

Language:Makefile 49.6%Language:Open Policy Agent 34.8%Language:HCL 15.6%