title: Passing multiple values for list
body: <p>I am using lists, but I am struggling to understand how to pass more than one value in a list. For instance each VPC requires 2 subnets, one for aza and one for azb. The tfvars file has a list of all 6 subnets [“subnet1”, “subnet2”, “subnet3”, etc etc]</p>
  <p>So I am calling three identical modules (just copied my master two additional times.) and in the area for VPC I am using:</p>
  <p>tfvars list =
  <code>vpc_cidr = [“10.211.128.0/27”, “10.211.128.32/27”, “10.211.128.64/27”]</code></p>
  <p>main.tf =
  <code>environment-vpc = var.environment-vpc[0]</code> for vpc1
  <code>environment-vpc = var.environment-vpc[1]</code> for vpc2
  <code>environment-vpc = var.environment-vpc[2]</code> for vpc3</p>
  <p>my subnets are listed as is:</p>
  <p>tfvars =</p>
  <p><code>public_subnets_cidr = [“10.211.128.0/28”, “10.211.128.16/28”, “10.211.128.32/28”,  “10.211.128.48/28”, “10.211.128.64/28”, “10.211.128.80/28”]</code></p>
  <p>main.tf =
  <code>public_subnets_cidr = var.public_subnets_cidr</code></p>
  <p>This is where I cannot figure out how to pass two objects in the list to the first vpc, then the next two for the second vpc and the last two for the third vpc.</p>