title: How to access list of lists which has a map in it using Terraform 0.11?
body: <p>I have a few <a href="https://www.terraform.io/docs/providers/aws/r/eks_node_group.html" rel="nofollow noreferrer">EKS node groups</a>. I am trying to access the <code>autoscaling_groups</code> <code>name</code> of all the node groups (eg <code>name = eks-e214c586716a</code>). It's much easier in 0.12, but we are still using 0.11. </p>
  
  <pre><code>[
    [
      {
        "autoscaling_groups" = [
          {
            "name" = "eks-e214c586716a"
          },
        ]
        "remote_access_security_group_id" = "sg-name1"
      },
    ],
    [
      {
        "autoscaling_groups" = [
          {
            "name" = "eks-c866f3f2edb5"
          },
        ]
        "remote_access_security_group_id" = "sg-name2"
      },
    ],
  ]
  
  </code></pre>
  
  <p>This works: <code>aws_eks_node_group.node-group.resources.0.autoscaling_groups.0.name</code></p>
  
  <p>However, when I iterate through, I am unsuccessful.</p>
  
  <pre><code>count = "${length(var.nodegroups)}"
  autoscaling_group_name    = "${element(aws_eks_node_group.node-group.resources.*.autoscaling_groups.*.name, count.index)}"
  </code></pre>