-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating terragrunt from 0.68.6 to 0.70.4: TFLINT gives error " A variable named "xxxxx" was assigned, but the root module does not declare " #3689
Comments
Hey @NicolaSpreafico , It was intended that we'd upgrade to the latest MPL version of tflint, yes. If you would prefer not to deal with tflint issues in terraform {
before_hook "tflint" {
commands = ["apply", "plan", "validate"]
execute = ["tflint", "--terragrunt-external-tflint"]
}
} Terragrunt used to use a pre-built version of |
Hi @yhakbar, I'm now running these versions:
But during terragrunt plan I'm still getting the same error. Am I missing something or is there a way to ignore that specific rule?
I found other reference |
The maintainers don't want there to be a way to opt-out of this check as of #1941 says that it should ignore extra If you want the old behavior, I recommend you downgrade your locally installed version of tflint to terraform {
before_hook "tflint" {
commands = ["apply", "plan", "validate"]
execute = ["tflint", "--terragrunt-external-tflint"]
}
} |
Potentially resolved by #3669 |
Hello,
In my Terragrunt project I enabled TFLINT as documented here:
https://terragrunt.gruntwork.io/docs/features/hooks/#tflint-hook
This is my hook
And this is the content of my .tflint.hcl
With Terragrunt version 0.68.6 (and previous versions) this configuration always worked fine since many months.
This morning I updated Terragrunt runtime to 0.70.4 and it started me giving these errors:
My main project structure is following these guidelines:
https://terragrunt.gruntwork.io/docs/features/includes/
In this way I can declare a value once and all the management is centralized.
It happens that, based on the nature of the single module, not all the variables are declared, like for example in the hcl I may have
but in a specific module I may only declare
Up until today all the value assignments which did not have a variable declaration counterpart were simply ignored, with the new version they started to give an error.
I'm opening this issue to ask you if this is some sort of unexpected regression or, if it is indeed expected, there is some way to tell tflint to ignore this kind of error.
Than you
The text was updated successfully, but these errors were encountered: