Replies: 1 comment
-
Oh .. beep beep beep!!! Ignore this. I'll leave the question up as an example of EXACTLY what RTFS means! Sorry!!! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We build modules that get reused throughout multiple projects. Maybe not ideal, but we can now add and expand on functionality in a repo, release it with a semantic version tag and move on. Consuming projects can then upgrade their projects to use the new version as and when they see fit.
All good so far.
Our issue is with tflint running in the module repo.
We will document the modules requirement (via terraform-docs and any additional things we need to impart).
One of the things is where the module is expected to be used to access multiple accounts. We are writing the module for newer versions of Terraform, so the
is valid, and requires 2 providers to be supplied to allow the module to function as intended.
What that gives us though, is an error in tflint when run via pre-commit :
What is the usual approach for using tflint on modules ... not full projects ... just the repo for the module that will be released with a semantic version tag.
All the other pre-commit hooks we run are fine. We can easily exclude the tflint check from the module repos (remove
- id: terraform_tflint
from the- repo: https://github.com/antonbabenko/pre-commit-terraform
block).Just don't want to do that and end up in a situation where there is a better solution.
Also, for the repos that do NOT have multiple providers, tflint runs successfully.
Beta Was this translation helpful? Give feedback.
All reactions