https://github.com/thazelart/terraform-validator
A norms and conventions validator for Terraform
https://github.com/thazelart/terraform-validator
code-quality continuous-delivery continuous-integration continuous-testing conventions hcl hcl2 norms terraform validator
Last synced: 10 months ago
JSON representation
A norms and conventions validator for Terraform
- Host: GitHub
- URL: https://github.com/thazelart/terraform-validator
- Owner: thazelart
- License: apache-2.0
- Archived: true
- Created: 2019-05-29T11:37:15.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2022-03-06T09:13:28.000Z (about 4 years ago)
- Last Synced: 2024-06-18T23:12:57.101Z (over 1 year ago)
- Topics: code-quality, continuous-delivery, continuous-integration, continuous-testing, conventions, hcl, hcl2, norms, terraform, validator
- Language: Go
- Homepage:
- Size: 3.81 MB
- Stars: 79
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-Char - terraform-validator - A norms and conventions validator for Terraform. (Validation / HTTP Clients)
- awesome-go-cn - terraform-validator
- awesome-go-info - terraform-validator
- awesome-go - terraform-validator - A norms and conventions validator for Terraform. (Validation / HTTP Clients)
- go-awesome-with-star-updatetime - terraform-validator - A norms and conventions validator for Terraform. (Validation / HTTP Clients)
- awesome-go-extra - terraform-validator - 05-29T11:37:15Z|2022-03-06T09:13:28Z| (Validation / Fail injection)
- awesome-go - terraform-validator - A norms and conventions validator for Terraform. (Validation / Utility/Miscellaneous)
README
:warning: **This repository is not maintained anymore. Sorry for the inconvenience**.
[](https://thazelart.github.io/terraform-validator/)
[](https://github.com/avelino/awesome-go#validation) [](https://github.com/gojp/goreportcard/blob/master/LICENSE)
[](https://terraform-validator.readthedocs.io/en/latest/?badge=latest) [](https://godoc.org/github.com/thazelart/terraform-validator)
[](https://travis-ci.com/thazelart/terraform-validator) [](https://codecov.io/gh/thazelart/terraform-validator) [](https://goreportcard.com/report/github.com/thazelart/terraform-validator)
[](https://hub.docker.com/r/thazelart/terraform-validator) [](https://hub.docker.com/r/thazelart/terraform-validator)
This tool will help you ensure that a terraform folder answer to your norms and conventions rules. This can be really useful in several cases :
* You're a team that want to have a clean and maintainable code.
* You're a lonely developer that develop a lot of modules and you want to have a certain consistency between them.
**Features:**
* [x] make sure that the block names match a certain pattern.
* [x] make sure that the code is properly dispatched. To do this you can decide what type of block can contain each file (for example output blocks must be in `outputs.tf`).
* [x] ensure that mandatory `.tf` files are present.
* [x] ensure that the terraform version has been defined.
* [x] ensure that the providers' version has been defined.
* [x] make sure that the variables and/or outputs blocks have the description argument filled in.
* [x] layered terraform folders (test recursively).
:warning: **Terraform 0.12+ is supported only by the versions 2.0.0 and higher**.
## Documentation
Please find the full documentation [here (ReadTheDocs)](https://terraform-validator.readthedocs.io).
## Authors
[Thibault Hazelart](https://github.com/thazelart)
Logo by [Alexis Normand](https://github.com/alexis-n)
## License
[Apache 2.0](/LICENSE)