terraform-validator
terraform-validator copied to clipboard
A norms and conventions validator for Terraform
:warning: This repository is not maintained anymore. Sorry for the inconvenience.
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
.tffiles 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).
Authors
Thibault Hazelart
Logo by Alexis Normand
License
Apache 2.0