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.2.tar.gz (16.5 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.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: terraform_plan_summary-1.0.2.tar.gz
  • Upload date:
  • Size: 16.5 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.2.tar.gz
Algorithm Hash digest
SHA256 d347a79809880a880109466deeafe374cdf4345a16514c8e1b34144c2b7c0e38
MD5 4593070ff377bde2b2cfa59b7bd982d8
BLAKE2b-256 0edfc8b9050daef8672c3d41ff394f0f0f316b9b51ca9b374d75a4c13e8df980

See more details on using hashes here.

Provenance

The following attestation bundles were made for terraform_plan_summary-1.0.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for terraform_plan_summary-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d029d79428032952f43fefcb6db0306caa6413c74ec486fc010838fa268cd822
MD5 1f735ea3fc984a7af32174d63427d724
BLAKE2b-256 8052b7d18676f7fd453eeb09c7c79bad4b102191c57a1b0e532827244990afa6

See more details on using hashes here.

Provenance

The following attestation bundles were made for terraform_plan_summary-1.0.2-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