Skip to main content

Lightweight command-line utility to analyse Terraform plan files

Project description

Build Coverage

tfanalyse

tfanalyse is a lightweight command-line utility to summarise 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 tfanalyse

You can also install it from source:

git clone git@github.com:twaslowski/tfanalyse.git
pip install ./tfanalyse/   # 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
tfanalyse 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

tfanalyse-0.3.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

tfanalyse-0.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tfanalyse-0.3.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.0 CPython/3.13.7 Darwin/25.0.0

File hashes

Hashes for tfanalyse-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c8d7292a2af4a5f4ef91653c2faccbcfc036323fad8b0b386b38a0aacdcaf811
MD5 4d0e39ab4f330f9ebafccdaf9e5f996e
BLAKE2b-256 a5c762653526b44c6a5f005c2d1d13418f44edca94e079611fa28f0a39666644

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tfanalyse-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.0 CPython/3.13.7 Darwin/25.0.0

File hashes

Hashes for tfanalyse-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2ab11f44f109b9bcc12f4f5b969d87f5a53eefe275b0d1932402730079c2e90
MD5 9d5839a3ee34c6ab8c22f77a0934c1f8
BLAKE2b-256 624acf5c9e36e6cd84ea1f638e7134b3421c56679b7ae47fbff3d1554b68b5cd

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