Skip to main content

Lightweight command-line utility to analyze Terraform plan files

Project description

Build Coverage

tfanalyze

tfanalyze is a lightweight command-line utility to summarize the contents of a Terraform plan. It allows you to quickly see what resources are being created, updated, or destroyed, and what changes are being made to them.

Installation

You can install this tool using pip:

pip install tfanalyze

You can also install it from source:

git clone git@github.com:twaslowski/tfanalyze.git
pip install ./tfanalyze/   # global installation
poetry install  # installs in your given poetry virtual environment

Usage

To use the tool, simply run it with the path to the Terraform plan file as an argument:

terraform plan -out=plan.tfplan
tfanalyze plan.tfplan

This will output a summary of the plan, showing the resources that are being created, updated, or destroyed. You can list only the resources that would be destroyed by adding the --destroy-only flag.

Development

This is a very minimal tool for now. I will develop it to be useful for me, and I hope that others may find it useful too. If you would like to develop it further, feel free to fork the repository and submit a pull request.

You can set up the local development environment using Poetry: Simply run poetry install.

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

tfanalyze-0.3.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

tfanalyze-0.3.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file tfanalyze-0.3.0.tar.gz.

File metadata

  • Download URL: tfanalyze-0.3.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for tfanalyze-0.3.0.tar.gz
Algorithm Hash digest
SHA256 964c3ea7ed13d853d0832d91fdac9e85c46435c50413a2a30a9d29d80713067c
MD5 70783681c6e627c4fbecfe1b53340b93
BLAKE2b-256 e4e41b34463c88363cfaebcbfc6eafb637f8295b1abc06029a4c3ee70a90388e

See more details on using hashes here.

File details

Details for the file tfanalyze-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: tfanalyze-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for tfanalyze-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81fc349100a4b26145894df935ab43d09e12d250aa68a99b60ce9edead6d719a
MD5 52b1efe9c952b152efb8cf14b0d15ad3
BLAKE2b-256 f421eca56a60ddf88eff6cb0c09cebae1b0190d00c2638a30570f76af376858c

See more details on using hashes here.

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