Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/schumann-it/tflint-ruleset-terraform-ext


https://github.com/schumann-it/tflint-ruleset-terraform-ext

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# TFLint Ruleset Terraform extension
[![Build Status](https://github.com/schumann-it/tflint-ruleset-terraformn-ext/workflows/build/badge.svg?branch=main)](https://github.com/schumann-it/tflint-ruleset-terraformn-ext/actions)

Extends default terraform ruleset with
- validation of variable attributes

## Requirements

- TFLint v0.42+
- Go v1.22

## Rules

|Name| Description |Severity|Enabled|Link|
| --- |--------------------------------------------| --- | --- | --- |
|terraform_variable_attribute_order| Validates the order of varibale attributes |ERROR|✔||

## Building the plugin

Clone the repository locally and run the following command:

```
$ make
```

You can easily install the built plugin with the following:

```
$ make install
```

You can run the built plugin like the following:

```
$ cat << EOS > .tflint.hcl
plugin "terraform-ext" {
enabled = true
version = "0.1.0"
source = "github.com/schumann-it/tflint-ruleset-terraform-ext"
}
EOS
$ tflint
```