Skip to content

Strange Warnings using the newer versions of tflint #1548

Answered by bendrucker
nvima asked this question in Q&A
Discussion options

You must be logged in to vote

The rule in question tries to implement this official guidance:

https://www.terraform.io/language/expressions/version-constraints#terraform-core-and-provider-versions

In other words, yes every module should have version constraints. Child modules can have looser constraints (minimum version only) while parents will often specify at least a minor version, if not an exact version.

While often you could leave out requirements from a child module with no effect as long as the parent sets them, this would mean that the module is no longer reusable or a valid root module. In order to run terraform init among other commands you need a valid root module so generally it's best to give that treatme…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nvima
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants