title: Terraform version 1.1.9 doesn't support list function
body: <p>I am in process to upgrade terraform version 1.1.9 for our application modules and but getting an below in .tf file.</p>
  <pre><code>Error:
  │ Call to function &quot;list&quot; failed: the &quot;list&quot; function was deprecated in
  │ Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to
  │ write a literal list.
  </code></pre>
  <p>code snippet:</p>
  <pre><code>ec2MidSubnetIds = coalesce(var.ec2MidSubnetIds, lookup(local.solution_data[&quot;config&quot;], &quot;ec2MidSubnetIds&quot;, list(local.subnets[local.mid_subnets_a_index][&quot;id&quot;], local.subnets[local.mid_subnets_b_index][&quot;id&quot;], local.subnets[local.mid_subnets_c_index][&quot;id&quot;])))
  </code></pre>
  <p>Can someone please help me to modify the code with &quot;tolist&quot; function or any other way to get it sorted ?
  because i have tried this with &quot;tolist&quot; as well but got an different error as you can see below,</p>
  <pre><code>Error: 
  Invalid function argument
  ec2ConfSubnets= coalesce(var.ec2ConfSubnets, lookup(local.solution_data[&quot;config&quot;], &quot;ec2ConfSubnets&quot;, tolist(local.subnets[local.mid_subnets_a_index][&quot;id&quot;]), tolist(local.subnets[local.mid_subnets_b_index][&quot;id&quot;]), tolist(local.subnets[local.mid_subnets_c_index][&quot;id&quot;])))
  
  Invalid value for &quot;v&quot; parameter: cannot convert string to list of any single
  type.
  
  Error: Invalid function argument
  </code></pre>