Git Product home page Git Product logo

tsi's Introduction

title tags author
Terraform State Inspector
terraform, state, inspector, tool, json, parse, extract, metadata, outputs, resources
Dan Fedick

Terraform State Inspector (TSI) is a command-line tool that helps you parse and extract useful information from your Terraform state files. It allows you to retrieve state file metadata, outputs, and the number of resources under management.

Download Instructions

To download the TSI tool, you can either clone the repository and build or download the binary from the releases page.

Release:

The releases page has the latest version of the binaries, build for darwin and linux.

Example:

cp tsi-darwin /usr/local/bin/
chmod +x /usr/local/bin/tsi

This will install the tsi binary executable called tsi in the current directory, then copy to your executable path and enable execution permission.

Run Commands

To run the TSI tool, use the following syntax:

./tsi [flags]

Here's a list of available flags:

  • -file (string): Specify the JSON file to parse.

  • -meta Print statefile metadata.

  • -outputs Print outputs.

  • -resources Print the number of resources under management.

Examples To print the statefile metadata:

./tsi -file my-state-file.json -meta

To print the state outputs:

./tsi -file my-state-file.json -outputs

To print the data and resources and the current number of resources under management that are managed in statefile:

./tsi -file my-state-file.json -resources

Getting Help To display the help message, run:

./tsi -h

This will show the usage instructions and the available flags.

tsi's People

Contributors

danfedick avatar

Watchers

 avatar

tsi's Issues

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.