comparison

package module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

This module can be used to compare two Terraform Plans. This is useful to predict the diff of a change without having to deploy any resources first.

All files named terraform_plan_diff_* were copied from https://github.com/cloudposse/atmos and modified to work outside of the Atmos framework. Also, instead of just printing the diff to output, it is returned in a map for further processing.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoJSONOutput is returned when no JSON output is found in terraform show output.
	ErrNoJSONOutput = errors.New("no JSON output found in terraform show output")
)

Static errors.

Functions

func ComparePlansAndGenerateDiff added in v0.2.0

func ComparePlansAndGenerateDiff(origPlanFileJSON, newPlanFileJSON string) (string, map[string]interface{}, bool, error)

ComparePlansAndGenerateDiff compares two plan files and generates a diff.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL