terraform-plan-parser | Command line utility and JavaScript API | Infrastructure Automation library

 by   lifeomic TypeScript Version: 1.6.0 License: MIT

kandi X-RAY | terraform-plan-parser Summary

kandi X-RAY | terraform-plan-parser Summary

terraform-plan-parser is a TypeScript library typically used in Devops, Infrastructure Automation, Nodejs, Terraform applications. terraform-plan-parser has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

This project provides a CLI and JavaScript API for parsing terraform plan output. IMPORTANT: This tool does not parse the file produced by the -out=path argument to terraform plan which is a binary file. There is not a stable specification for this binary file format so, at this time, it is safer to parse the somewhat structured textual output that gets written to stdout.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              terraform-plan-parser has a low active ecosystem.
              It has 133 star(s) with 15 fork(s). There are 31 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 8 open issues and 9 have been closed. On average issues are closed in 98 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of terraform-plan-parser is 1.6.0

            kandi-Quality Quality

              terraform-plan-parser has 0 bugs and 0 code smells.

            kandi-Security Security

              terraform-plan-parser has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              terraform-plan-parser code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              terraform-plan-parser is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              terraform-plan-parser releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of terraform-plan-parser
            Get all kandi verified functions for this library.

            terraform-plan-parser Key Features

            No Key Features are available at this moment for terraform-plan-parser.

            terraform-plan-parser Examples and Code Snippets

            No Code Snippets are available at this moment for terraform-plan-parser.

            Community Discussions

            Trending Discussions on terraform-plan-parser

            QUESTION

            Terraform plan human readable output in automation
            Asked 2019-Nov-07 at 23:55

            I have set up an automation through github/jenkins to post the output of terraform plan for the repo through jenkins as a comment to the pull request in github. The entire orchestration works great except for the fact that the output of terraform plan is not that human readable and doesn't provide you in this kind of automation a way as it looks when you run it in a terminal. I used several ways like using terraform show for the plan file, then grabbing that to a custom file and posting that as a comment in GitHub PR. In every case the output contains some binary characters.

            i even used the terraform-plan-parser https://github.com/lifeomic/terraform-plan-parser but that doesn't work for terraform 0.12 and relates to the below issue :- https://github.com/lifeomic/terraform-plan-parser/issues/31

            What's the best way to retrieve the output of any terraform plan in automation so that it can be referenced however that needs to be to inspect before the apply is done. Looks to me it only works great in a terminal.

            Any help or suggestions here will be greatly appreciated as always.

            ...

            ANSWER

            Answered 2019-Nov-07 at 23:55

            By default Terraform uses terminal escape sequences to highlight parts of the output with simple formatting such as colors or a bold typeface.

            In order to reproduce that result exactly in the context of GitHub would require translating the terminal escape sequences into a form that GitHub is able to render.

            Unfortunately GitHub comments are written in GitHub-flavored Markdown, which doesn't support any direct way to create colored text similar to Terraform's plan output at the time when I'm write this. Therefore I know of no easy way to reproduce the text formatting from the Terraform plan output in a GitHub comment.

            If you run terraform plan with the -no-color option then it will skip the terminal escape sequences and produce plain-text output that you could include in a preformatted text block in your Markdown comment. However, that output will therefore not include the text formatting you normally see in your terminal.

            If you are willing to write some custom formatting code to present the Terraform plan in a different format for your GitHub comments, you can obtain a JSON representation of the plan by saving the plan to disk and then reading it with terraform show:

            Source https://stackoverflow.com/questions/58757379

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install terraform-plan-parser

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i terraform-plan-parser

          • CLONE
          • HTTPS

            https://github.com/lifeomic/terraform-plan-parser.git

          • CLI

            gh repo clone lifeomic/terraform-plan-parser

          • sshUrl

            git@github.com:lifeomic/terraform-plan-parser.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Infrastructure Automation Libraries

            terraform

            by hashicorp

            salt

            by saltstack

            pulumi

            by pulumi

            terraformer

            by GoogleCloudPlatform

            Try Top Libraries by lifeomic

            sparkflow

            by lifeomicPython

            axios-fetch

            by lifeomicTypeScript

            attempt

            by lifeomicTypeScript

            json-schema-to-graphql-types

            by lifeomicJavaScript