Closed sagar2610 closed 1 year ago
Same problem here, I've reproduced it with
locals {
sample_value = "whatever"
sample_map = merge({
sample-key = {
another-sample-key = local.sample_value
}
sample-key-2 = {
another-sample-key = local.sample_value
}
})
}
resource "null_resource" "sample" {
for_each = local.sample_map
}
Failed to check ruleset; Failed to check `google_project_iam_member_invalid_member` rule: tflint-fix.tf:9,28-46: circular reference found; local.sample_map -> local.sample_value -> local.sample_value
Thank you for reporting this issue. I'm working on a fix for this bug.
v0.42.1 has been released. https://github.com/terraform-linters/tflint/releases/tag/v0.42.1
Introduction
After installing the new version, 0.42.0, I start getting circular dependency errors in my local variables.
locals.tf
test.tf
-->
Expected Behavior
Actual behavior
Step to Reproduce
Additional Context