GithubHelp home page GithubHelp logo

doytsujin / terraform-visual Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hieven/terraform-visual

0.0 1.0 0.0 27.08 MB

Terraform Visual is an interactive way of visualizing your Terraform plan

Home Page: https://hieven.github.io/terraform-visual

License: MIT License

TypeScript 90.80% JavaScript 1.49% CSS 7.71%

terraform-visual's Introduction

Terraform Visual is a simple but powerful tool to help you understand your Terraform plan easily.

Demo.gif

How to use it

For people who want to quickly experience how Terraform Visual looks like

  1. Generate Terraform plan in JSON format
$ 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
  1. Visit Terraform Visual

  2. Upload Terraform JSON to the platform

Using CLI

For people who don't like to upload Terraform plan to public internet. You could install the CLI tool via NPM.

Please refer to @terraform-visual/cli for more details

  1. Install CLI
# Using Yarn
$ yarn global add @terraform-visual/cli

# Using NPM
$ npm install -g @terraform-visual/cli
  1. 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
  1. Create Terraform Visual Report
$ terraform-visual --plan plan.json
  1. Browse The Report
$ open terraform-visual-report/index.html

Using Docker

For people who likes Terraform Visual and wanto to integrate it into existing CI/CD pipeline.

The Docker image is on top of offical Terraform + Terraform Visual CLI.

You can simply replace the Terraform image in your CI/CD piepline with this one and enjoy the benefit of both command line tools.

For more details, please refer to Docker: Terraform-Visual

terraform-visual's People

Contributors

hieven avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.