diff --git a/pkg/terraform/attribute.go b/pkg/terraform/attribute.go index 5d9258a73..856bec184 100644 --- a/pkg/terraform/attribute.go +++ b/pkg/terraform/attribute.go @@ -987,8 +987,10 @@ func (a *Attribute) referencesFromExpression(expression hcl.Expression) []*Refer refs = append(refs, ref) } case *hclsyntax.TupleConsExpr: - if ref, err := createDotReferenceFromTraversal(a.module, t.Variables()...); err == nil { - refs = append(refs, ref) + for _, v := range t.Variables() { + if ref, err := createDotReferenceFromTraversal(a.module, v); err == nil { + refs = append(refs, ref) + } } case *hclsyntax.RelativeTraversalExpr: switch s := t.Source.(type) {