You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Invalid reference; The "data" object must be followed by two attribute names: the data source type and the resource name.
Additional Context
$ tflint -vTFLint version 0.39.2
$ terraform -vTerraform v1.1.4
The text was updated successfully, but these errors were encountered:
bendrucker
changed the title
False positive "invalid reference" warning when using "data" in lifecylce ignore_changes block
"invalid reference" error with lifecycle.ignore_changesAug 8, 2022
This issue doesn't occur in Terraform as it doesn't generate references to ignore_changes. We should avoid this case in its own way. It's a hard question to work around, but running terraform validate can catch reference errors, so one idea is to ignore the errors for now.
Introduction
When
lifecycle
ignore_changes
block containsdata
e.g.Tflint shows a warning on it.
Expected Behavior
This shouldn't cause any issues
Actual behavior
Tflint shows this warning on this code
Additional Context
The text was updated successfully, but these errors were encountered: