Documentation
¶
Overview ¶
Package plan normalizes `terraform show -json` output into a shape that is convenient for rule evaluation. It flattens terraform-json's representation into before/after maps plus a normalized action list, so a CEL rule can read either the planned end-state (after) or the transition (actions) uniformly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceChange ¶
type ResourceChange struct {
Address string
Type string
Name string
// Actions is the normalized change set: one or more of
// create|read|update|delete, or the synthetic "replace" / "no-op".
Actions []string
Before map[string]interface{}
After map[string]interface{}
}
ResourceChange is a normalized view of a single planned change.
func Load ¶
func Load(data []byte) ([]ResourceChange, error)
Load parses terraform plan JSON into normalized changes.
Click to show internal directories.
Click to hide internal directories.