A wrapper for the Terraform CLI that provides a formatted plan summary.
Project description
terraformat
A wrapper for the Terraform CLI that provides a formatted plan summary.
Overview
terraformat is a command-line tool designed to improve the readability of terraform plan outputs. It runs your Terraform plan and summarizes the planned resource changes (create, update, destroy) in a color-coded, tabular format. This helps teams more quickly and safely review infrastructure changes before applying them.
Features
- Runs any
terraformcommand, but enhancesterraform planwith a summary table - Color-coded output for quick identification of create (green), update (yellow), and destroy (red) actions
- Parses complex Terraform resource addresses, including those in modules
- Integrates seamlessly into existing Terraform workflows
Installation
pip install .
pip install git+https://github.com/henryupton/terraformat.git
Requirements
- Python 3.7+
- Terraform installed and available in your PATH
Python dependencies (installed automatically):
- click
- tabulate
Usage
After installation, you can use terraformat as a drop-in replacement for terraform. All commands are passed through to Terraform, but plan will be summarized:
terraformat plan [ARGS...]
Example output
🚀 Running 'terraform plan'...
--- Original Terraform Output ---
[standard terraform plan output here]
==================================================
📊 Terraformat Summary
==================================================
+----------------+---------+---------+----------+
| Resource Type | Create | Update | Destroy |
+================+=========+=========+==========+
| aws_instance | 1 | 0 | 1 |
| local_file | 1 | 0 | 0 |
| random_pet | 0 | 1 | 0 |
+----------------+---------+---------+----------+
| Total | 2 | 1 | 1 |
+----------------+---------+---------+----------+
If you run other Terraform commands, they’re just passed through unchanged:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file terraformat-0.1.7.tar.gz.
File metadata
- Download URL: terraformat-0.1.7.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b51226eb5011c4fe7a4217d99a3c22a62e9dcbf34c43d1e396e93caa2eb0b1b
|
|
| MD5 |
e2d7895599dc817055aca750b27368e9
|
|
| BLAKE2b-256 |
0797b9684159f9fbbaa223f3c023713159879185a4e42a181ee9c4dc0adb2932
|
File details
Details for the file terraformat-0.1.7-py3-none-any.whl.
File metadata
- Download URL: terraformat-0.1.7-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fd0837fbb4b422b7bb531edacdf5341f5a0a45eb73df99405697dd2a45e889d
|
|
| MD5 |
f7cd28dbff923edb57529c540a81038f
|
|
| BLAKE2b-256 |
d74fd22c9f8ec82d609ca23edf62dbcb753c181975b411528b8958415e724dbc
|