@terraform-visual/cli
v0.2.1
Published
Terraform Visual cli
Downloads
9,084
Maintainers
Readme
Terraform Visual CLI
Terraform Visual CLI is an easy-to-use command line tool to generate an interactive static HTML page visualizing provided Terraform plan.
Installation
# Using Yarn
$ yarn global add @terraform-visual/cli
# Using NPM
$ npm install -g @terraform-visual/cli
Usage
Convert Terraform Plan into JSON File
$ terraform plan -out=plan.out # Run plan and output as a file
$ terraform show -json plan.out > plan.json # Read plan file and output it in JSON format
Create Terraform Visual Report
$ terraform-visual --plan plan.json
Browse The Report
$ open terraform-visual-report/index.html
Options
| Field | Required | Default | Remark |
|-------|----------|---------|--------------------------------------------------------------------|
| out | X | .
| Relative path from current dir to generate Terraform-Visual report |
| plan | V | n/a
| Relative path to the generated plan JSON file |