title: Terraform support in list of maps
body: <p>In order to create a multi region mongodb cluster I’ll need to create a resource which contains some static and dynamic configuration.</p>
  
  <p>I would like to take the dynamic configuration and insert 2 different values to this section.</p>
  
  <p>Let me clarify, please check the following resource:</p>
  
  <pre><code>resource "mongodbatlas_cluster" "mongo_cluster" {
  
    project_id                  = var.mongo_project_id
    name                        = var.mongo_cluster_name
    num_shards                  = var.mongo_num_shards
    replication_factor          = var.mongo_replication_factor
    backup_enabled              = var.mongo_backup_boolean
    mongo_db_major_version      = var.mongo_version
    provider_name               = var.mongo_provider_name
    disk_size_gb                = var.mongo_disk_size
    provider_disk_iops          = var.mongo_disk_iops
    provider_volume_type        = var.mongo_volume_type
    provider_encrypt_ebs_volume = var.mongo_encryption_boolean
    provider_instance_size_name = var.mongo_instance_size
    cluster_type                = var.mongo_cluster_type
    replication_specs {
      num_shards                = var.mongo_replication_num_shards
      regions_config {
        region_name = regions_config.region
        electable_nodes = regions_config.electable_nodes
        priority = regions_config.priority
        read_only_nodes = regions_config.read_only_nodes
        }
      }
    }
  }
  </code></pre>
  
  <p>For my purposes I would like to create a list of maps which will look like this:</p>
  
  <pre><code>regions_config = [
  {
    region_name = "eu-west-1"
    electable_nodes = "2"
    priority = "7"
    read_only_nodes = "0"
  },
  {
    region_name = "eu-central-1"
    electable_nodes = "1"
    priority = "6"
    read_only_nodes = "0"
  }
  ]
  </code></pre>
  
  <p>Note that I don’t want to create several clusters so I guess the “count” function won’t help me, I just want to add another “regions_config” section to the specified cluster.</p>
  
  <p>The resource should look like this:</p>
  
  <pre><code>resource "mongodbatlas_cluster" "cluster-test" {
    project_id     = "&lt;YOUR-PROJECT-ID&gt;"
    name           = "cluster-test-multi-region"
    disk_size_gb   = 100
    num_shards     = 1
    backup_enabled = true
    cluster_type   = "REPLICASET"
  
    //Provider Settings "block"
    provider_name               = "AWS"
    provider_disk_iops          = 300
    provider_volume_type        = "STANDARD"
    provider_instance_size_name = "M10"
  
    replication_specs {
      num_shards = 1
      regions_config {
        region_name     = "US_EAST_1"
        electable_nodes = 3
        priority        = 7
        read_only_nodes = 0
      }
      regions_config {
        region_name     = "US_EAST_2"
        electable_nodes = 2
        priority        = 6
        read_only_nodes = 0
      }
      regions_config {
        region_name     = "US_WEST_1"
        electable_nodes = 2
        priority        = 5
        read_only_nodes = 2
      }
    }
  }
  </code></pre>
  
  <p>Do you know how can I handle it?</p>
  
  <p>Thanks !</p>