Difference between revisions of "Tflint"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
* Installation: <code>[brew install tflint]]</code>
+
<code>tflint</code> Terraform [[Linter]].
 +
 
 +
* https://github.com/terraform-linters/tflint
 +
* Installation: <code>[[brew install tflint]]</code>
 +
* Linux: <code>[[curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh]] | bash</code>
 
* Help:  <code>[[tflint --help]]</code>
 
* Help:  <code>[[tflint --help]]</code>
 +
 +
 +
== Warnings ==
 +
Warning: variable "[[cidr_blocks]]" is declared but not used (terraform_unused_declarations)
 +
 +
  on [[variables.tf]] line 11:
 +
  11: variable "cidr_blocks" {
 +
 +
Reference: https://github.com/terraform-linters/tflint-ruleset- terraform/blob/v0.2.2/docs/rules/terraform_unused_declarations.md
  
 
== Related ==
 
== Related ==
 
* <code>[[tfsec]]</code>
 
* <code>[[tfsec]]</code>
 +
* <code>[[terraform validate]]</code>
 +
* <code>[[terraform fmt]]</code>
  
 
== See also ==
 
== See also ==
 
* {{tflint}}
 
* {{tflint}}
 
* {{tf tools}}
 
* {{tf tools}}
* {{Terraform}}
 
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 11:45, 30 May 2024

tflint Terraform Linter.


Warnings[edit]

Warning: variable "cidr_blocks" is declared but not used (terraform_unused_declarations)

  on variables.tf line 11:
  11: variable "cidr_blocks" {

Reference: https://github.com/terraform-linters/tflint-ruleset- terraform/blob/v0.2.2/docs/rules/terraform_unused_declarations.md

Related[edit]

See also[edit]

Advertising: