title: Error: Inappropriate value for attribute "cidr_blocks": list of string required
body: <p>While creating security groups, I keep getting the following error</p>
  
  <blockquote>
    <p>Inappropriate value for attribute "cidr_blocks": list of string
    required.</p>
  </blockquote>
  
  <p>here is excerpt from <strong>main.tf</strong></p>
  
  <pre><code>resource "aws_security_group" "sg_sagum" {
    name        = var.sg_sagum1
    vpc_id      = data.aws_vpc.vpcname.id
    description = var.sg_sagum1
    tags = {
      Name = var.sg_sagum1
    }    
    dynamic "ingress" {
      for_each = [for s in var.sg_sagum_ports : {
        from_port = s.from_port
        to_port   = s.to_port
        desc = s.desc
        cidrs = s.cidr
      }]
      content {
        from_port   = ingress.value.from_port
        to_port     = ingress.value.to_port
        cidr_blocks = ingress.value.cidrs
        protocol    = "tcp"
        description = ingress.value.desc
      }
    }
  }
  </code></pre>
  
  <p><strong>variables.tf</strong></p>
  
  <pre><code>variable "sg_sagum_ports" {    
    description = "Ports to be opened on SAGUM SG"    
    type        = list(map(string))    
    default     = []  
    }
  </code></pre>
  
  <p><strong>terraform.tfvars</strong></p>
  
  <pre><code>sg_sagum_ports = [
    { from_port = "9000",
      to_port   = "9000",
      cidr      = "10.22.9.11/32"
      desc      = "SAGBPMS"
    }
  ]
  </code></pre>
  
  <blockquote>
    <p>Inappropriate value for attribute "cidr_blocks": list of string
    required.</p>
  </blockquote>