Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flavono123/terraform-plan-summary
Add a `-summary` flag for `terraform plan`
https://github.com/flavono123/terraform-plan-summary
Last synced: about 1 month ago
JSON representation
Add a `-summary` flag for `terraform plan`
- Host: GitHub
- URL: https://github.com/flavono123/terraform-plan-summary
- Owner: flavono123
- License: apache-2.0
- Created: 2023-09-19T08:34:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-12T03:48:07.000Z (7 months ago)
- Last Synced: 2024-04-12T11:19:35.618Z (7 months ago)
- Language: Shell
- Size: 1.46 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `terraform plan -summary`
![demo](assets/demo.gif)
*Summarize resource addresses from a `terraform plan` result*
## Prerequisites
- [`terraform`](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli)
- [`jq`](https://jqlang.github.io/jq/download/)### MacOS
```sh
brew install terraform jq
# or install terraform by `tfenv`
```## Install
```sh
wget -qO $HOME/.terraform.d/terraform-plan-summary https://github.com/flavono123/terraform-plan-summary/releases/download/v0.1.1/terraform-plan-summary && \
chmod +x $HOME/.terraform.d/terraform-plan-summary && \
echo "alias terraform='$HOME/.terraform.d/terraform-plan-summary'" >> $HOME/.bashrc && \
source $HOME/.bashrc
```### Local
```sh
# clone
$ git clone https://github.com/flavono123/terraform-plan-summary.git
$ cd terraform-plan-summary
$ cp terraform-plan-summary $HOME/.terraform.d/terraform-plan-summary && \
chmod +x $HOME/.terraform.d/terraform-plan-summary && \
echo "alias terraform='$HOME/.terraform.d/terraform-plan-summary'" >> $HOME/.bashrc && \
source $HOME/.bashrc
```## References
[Show only the resources that will be changed in terraform plan - trying to use jq for this](https://www.reddit.com/r/Terraform/comments/10m7jdd/show_only_the_resources_that_will_be_changed_in/)