Skip to main content

Summarize Terraform plan outputs.

Project description

terraform-plan-summary

A Python command-line tool that transforms Terraform plan outputs into clean, hierarchical tree views with color-coded changes. Easily visualize your infrastructure changes organized by modules with detailed attribute-level inspection.

Installation

From PyPI

Using uv:

uv pip install terraform-plan-summary

Or run directly with uvx:

uvx terraform-plan-summary

Requirements

  • Python 3.13 or higher
  • Terraform CLI (for processing binary plan files)

Usage

Basic Usage

# From a JSON plan file
terraform-plan-summary plan.json

# From a binary plan file (requires terraform CLI)
terraform-plan-summary plan.out

Command Line Options

terraform-plan-summary [OPTIONS] PLAN_FILE

Arguments:
  PLAN_FILE                 Path to Terraform plan file (binary .out or JSON)

Options:
  -v, --verbose             Show changed attributes (-v) or their values (-vv)
  --show-ids                Display resource identifiers (name, ARN, ID, etc.)
  -h, --help               Show help message

Examples

Basic Tree View

terraform-plan-summary plan.json
root_module
├── + aws_instance.web_server
├── ~ aws_security_group.web_sg
└── database
    ├── + aws_db_instance.main
    └── - aws_db_subnet_group.legacy

With Resource Identifiers

terraform-plan-summary --show-ids plan.json
root_module
├── + aws_instance.web_server (web-server-prod)
├── ~ aws_security_group.web_sg (sg-0abc123def456789)
└── database
    ├── + aws_db_instance.main (prod-database)
    └── - aws_db_subnet_group.legacy (legacy-subnet-group)

Detailed Attribute Changes

terraform-plan-summary -vv --show-ids plan.json
root_module
├── + aws_instance.web_server (web-server-prod)
├── ~ aws_security_group.web_sg (sg-0abc123def456789)
│   ├── ~ ingress: [] -> [{"cidr_blocks":["0.0.0.0/0"],"from_port":80,"protocol":"tcp","to_port":80}]
│   └── + name: "web-security-group"
└── database
    ├── + aws_db_instance.main (prod-database)
    └── - aws_db_subnet_group.legacy (legacy-subnet-group)
        └── - subnet_ids: ["subnet-abc123","subnet-def456"]

Generating Terraform Plans

JSON Format (Recommended)

terraform plan -out=plan.out
terraform show -json plan.out > plan.json
terraform-plan-summary plan.json

Binary Format

terraform plan -out=plan.out
terraform-plan-summary plan.out

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terraform_plan_summary-1.0.1.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

terraform_plan_summary-1.0.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file terraform_plan_summary-1.0.1.tar.gz.

File metadata

  • Download URL: terraform_plan_summary-1.0.1.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for terraform_plan_summary-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1d22a9b7e7335a519b64c8172c6d0291c55609f62e4fc3f293a7872bb7b3de9c
MD5 8e2611b484e9bd8c9a35bf22a41a5adf
BLAKE2b-256 3c2b98ae29f0037424333544ea7a480c1a2f7d9c3671a9d4eb34832592ad84f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for terraform_plan_summary-1.0.1.tar.gz:

Publisher: publish.yml on nbr23/terraform-plan-summary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terraform_plan_summary-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for terraform_plan_summary-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17fbfa87feddb5cb857d88f4f61e52fd7af5c0b9e11cff37f9d5ceca0a3b45b6
MD5 5b87b1b3445af2dda0446630a7602c6d
BLAKE2b-256 fcadc976a0abfc5d11a0b9da33f4ea6426b2fd16ee8b94ba58be07930a5db32a

See more details on using hashes here.

Provenance

The following attestation bundles were made for terraform_plan_summary-1.0.1-py3-none-any.whl:

Publisher: publish.yml on nbr23/terraform-plan-summary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page