Custom Plan Checks
The package plancheck
also provides the PlanCheck
interface, which can be implemented for a custom plan check.
The plancheck.CheckPlanRequest
contains the current plan file, parsed by the terraform-json package.
Here is an example implementation of a plan check that asserts that every resource change is a no-op, aka, an empty plan:
And example usage: