tflint | A Pluggable Terraform Linter | Infrastructure Automation library

 by   terraform-linters Go Version: v0.46.1 License: MPL-2.0

kandi X-RAY | tflint Summary

kandi X-RAY | tflint Summary

tflint is a Go library typically used in Devops, Infrastructure Automation, Terraform applications. tflint has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has medium support. You can download it from GitHub.

A Pluggable Terraform Linter.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              tflint has a medium active ecosystem.
              It has 3950 star(s) with 318 fork(s). There are 35 watchers for this library.
              There were 1 major release(s) in the last 12 months.
              There are 19 open issues and 435 have been closed. On average issues are closed in 53 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of tflint is v0.46.1

            kandi-Quality Quality

              tflint has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              tflint is licensed under the MPL-2.0 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              tflint releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 31547 lines of code, 1226 functions and 293 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            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 tflint
            Get all kandi verified functions for this library.

            tflint Key Features

            No Key Features are available at this moment for tflint.

            tflint Examples and Code Snippets

            No Code Snippets are available at this moment for tflint.

            Community Discussions

            QUESTION

            Why the production plan job in to-be-continuous/terraform is launched on a merge request pipeline?
            Asked 2021-Oct-22 at 06:45

            I'm wondering why the job "tf-plan-production" in the to-be-continuous/terraform template is the only one running on a merge request pipeline?
            Does anybody know the reason behind this?
            Because I find it disturbing to have 2 pipelines, 1 detached pipeline containing only a single job while the other pipeline contains all the other jobs (tf-plan-review, tf-tflint, tf-checkov ...). I hesitate to override this rule as I may miss something important.

            To be more precise, in this to-be-continuous template, all the defined jobs are never run on a merge request pipeline by using the rule :

            ...

            ANSWER

            Answered 2021-Oct-20 at 19:44

            terraform plan is a nondestructive operation that compares what terraform would create to what exists in output, and creates a diff between existing state and state that has been coded but not created.

            Typically it is run when a PR is created so that a dry run is available and visible to the developers, while terraform apply is run on merge. If there isn't another environment developers can test their changes in, it is a necessary step.

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

            QUESTION

            How to include a policy json file in Terraform?
            Asked 2021-Aug-29 at 09:24

            Downloaded this iam policy file and save it in the root path besides main.tf in Terraform:

            https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.2.1/docs/install/iam_policy.json

            Made this creation want to call the policy file

            ...

            ANSWER

            Answered 2021-Aug-29 at 09:24

            Did you use the latest version of tflint?

            Because I've tried and everything was OK for me

            There were my steps:

            NOTE: tflint v0.31.0 and terraform v1.0.2

            [1] wget https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.2.1/docs/install/iam_policy.json

            [2] In my main.tf

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

            QUESTION

            How to set default value to aws_iam_policy with terraform?
            Asked 2021-Apr-21 at 09:08

            I want to set aws policy dynamically. Set variables to call aws_iam_policy resource. The variable file as

            variables.tf

            ...

            ANSWER

            Answered 2021-Apr-21 at 09:08

            Managed policy name can't be empty string. At least 1 character is required following [\w+=,.@-]+ pattern.

            But to auto generate name if you have empty string, you can try the following:

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

            QUESTION

            Azure pipelines failing stating Incorrect task refrence
            Asked 2020-Dec-01 at 08:55

            My Azure pipeline is as below:

            ...

            ANSWER

            Answered 2020-Dec-01 at 08:54

            Well it looks like you want to refer to task: TerraformTaskV1@0 (based on the syntax) and the you should use as this:

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

            QUESTION

            How can I use tflint on VSCode with HashiCorp Terraform plugin?
            Asked 2020-Jun-28 at 08:26

            I'm trying to use tflint on VSCode, but can't configure it properly.
            On my terminal, both terraform and tflint works well.

            ...

            ANSWER

            Answered 2020-Jun-28 at 08:26

            The Terraform plugin for Visual Studio Code no longer supports tflint since v2.

            You can see the difference in supported features in the README for each version. The v1.4.0 release shows the following features:

            • Auto-completion support
              1. Terraform high level types (variable, resource, data, module ...) auto completion support.
              2. resource types (aws_dynamodb_table ...) auto completion support for aws, azure, datadog, google, oci and openstack
              3. resource | data | module | output | variable property types auto completion support
              4. resource | data 1-level nested block property types auto completion support
            • Syntax highlighting for .tf and .tfvars files (and .hcl)
            • Automatic formatting using terraform fmt
            • Automatically closes braces and quotes
            • Adds a command for running terraform validate
            • Linting support with the help of tflint
            • Browse document symbols
            • Browse workspace symbols
            • Peek definition
            • Goto definition
            • Find references
            • Completion for variables and outputs
            • Rename variables, resource, and data types and all references
            • Show variable values on hover
            • CodeLens shows if a section is referenced

            While the v2 release shows these features:

            • Manages installation and updates of the Terraform Language Server (terraform-ls), exposing its features:
              • Initialized provider completion (resource names, data source names, attribute names)
            • Includes syntax highlighting for .tf and .tfvars files (and .hcl) -- including all syntax changes new to Terraform 0.12
            • Closes braces and quotes
            • Includes for_each and variable syntax shortcuts (fore, vare, varm)

            There's an issue tracking re-adding tflint support but there's not been any work done on this just yet.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install tflint

            If you are using an AWS/Azure/GCP provider, it is a good idea to install the plugin and try it according to each usage:. Rules for the Terraform Language is built into the TFLint binary, so you don't need to install any plugins. Please see Rules for a list of available rules. If you want to extend TFLint with other plugins, you can declare the plugins in the config file and easily install them with tflint --init. See also Configuring Plugins.
            Amazon Web Services
            Microsoft Azure
            Google Cloud Platform

            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
            CLONE
          • HTTPS

            https://github.com/terraform-linters/tflint.git

          • CLI

            gh repo clone terraform-linters/tflint

          • sshUrl

            git@github.com:terraform-linters/tflint.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 terraform-linters

            tflint-ruleset-aws

            by terraform-lintersGo

            setup-tflint

            by terraform-lintersJavaScript

            tflint-ruleset-azurerm

            by terraform-lintersGo

            tflint-ruleset-google

            by terraform-lintersGo

            tflint-ruleset-opa

            by terraform-lintersGo