title: terraform list of string get method failed
body: <p>I have two file called eks-cluster.tf and eks-clsuter-tfvars these file contains to get the list of admin users from the variable file called eks-cluster.tf while execution of terraform plan command getting below error.</p>
  <p>eks-cluster.tf</p>
  <pre><code>variable &quot;admin_users&quot; {
    type        = list(string)
    description = &quot;List of Kubernetes admins.&quot;
  
  </code></pre>
  <p>eks-cluster-tfvars</p>
  <pre><code>admin_users = [&quot;aaaa&quot;, &quot;bbbbb&quot;]
  </code></pre>
  <p>Error log from terraform plan command</p>
  <pre><code>
   Error: Error in function call
  │
  │   on .terraform\modules\eks-cluster\outputs.tf line 3, in output &quot;cluster_id&quot;:
  │    3:   value       = element(concat(aws_eks_cluster.this.*.id, list(&quot;&quot;)), 0)
  │
  │ 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>