Skip to content

Example: Debugging a rule with Regula⚓︎

Best viewed on the live website.

Debugging a rule with Regula screenshot

This tutorial explains how to use Regula to debug a simple custom rule written in Rego, a policy-as-code language for securing infrastructure-as-code. I wrote the Terraform configuration and the custom rule, consulted an engineer for details about using Regula's REPL, and then documented the process step by step.

Links

  • PDF: View a downloadable copy of the original document.
  • Archived webpage: View an archived copy of the document on the Wayback Machine.
  • Live site: View the document on the live website. Note that the content may have been updated since I wrote it.