diff --git a/terraform/eval_for_each.go b/terraform/eval_for_each.go index b86bf3755a97..333f65e268ac 100644 --- a/terraform/eval_for_each.go +++ b/terraform/eval_for_each.go @@ -54,7 +54,7 @@ func evaluateResourceForEachExpressionKnown(expr hcl.Expression, ctx EvalContext return map[string]cty.Value{}, false, diags } - if !forEachVal.CanIterateElements() || forEachVal.Type().IsListType() { + if !forEachVal.CanIterateElements() || forEachVal.Type().IsListType() || forEachVal.Type().IsTupleType() { diags = diags.Append(&hcl.Diagnostic{ Severity: hcl.DiagError, Summary: "Invalid for_each argument",