Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wata727/tflint-ruleset-sandbox
https://github.com/wata727/tflint-ruleset-sandbox
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/wata727/tflint-ruleset-sandbox
- Owner: wata727
- Created: 2021-05-16T07:26:19.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-06T06:29:38.000Z (9 months ago)
- Last Synced: 2024-12-11T18:54:08.127Z (about 1 month ago)
- Language: Go
- Size: 36.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TFLint Ruleset Template
[![Build Status](https://github.com/terraform-linters/tflint-ruleset-template/workflows/build/badge.svg?branch=master)](https://github.com/terraform-linters/tflint-ruleset-template/actions)This is a template repository for building a custom ruleset. You can create a plugin repository from "Use this template".
## Requirements
- TFLint v0.24+
- Go v1.18## Installation
Download the plugin and place it in `~/.tflint.d/plugins/tflint-ruleset-template` (or `./.tflint.d/plugins/tflint-ruleset-template`). When using the plugin, configure as follows in `.tflint.hcl`:
```hcl
plugin "template" {
enabled = true
}
```## Rules
|Name|Description|Severity|Enabled|Link|
| --- | --- | --- | --- | --- |
|aws_instance_example_type|Example rule for accessing and evaluating top-level attributes|ERROR|✔||
|aws_s3_bucket_example_lifecycle_rule|Example rule for accessing top-level/nested blocks and attributes under blocks|ERROR|✔||
|local_file_example_provisioner|Example rule for accessing reserved attributes/blocks such as "provisioner"|ERROR|✔||
|terraform_backend_type|Example rule for accessing the backend configuration|ERROR|✔||
|module_call_validity|Example rule for accessing module calls|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
```