title: Error creating Security Group: InvalidGroup.Duplicate when defining AWS security group in Terraform
body: <p>I'm new to Terraform, when I run Terraform apply, I git this error:</p>
  <pre><code>Error: Error creating Security Group: InvalidGroup.Duplicate: The security group 'xxxxxxx' already exists for VPC 'vpc-xxxxxx'
          status code: 400
  </code></pre>
  <p>The script for this part looks like this:</p>
  <pre><code>resource &quot;aws_security_group&quot; &quot;xxxxx_security_group&quot; {
    name   = &quot;xxxxx-security-group-xxxx&quot;
    vpc_id = xxxxxxxxxxxxx
  
    egress {
      from_port   = x
      protocol    = x
      to_port     = x
      cidr_blocks = [&quot;x.x.x.x/x&quot;]
    }
  }
  </code></pre>
  <p>Can someone give me some hints? Spent like almost an hour now, still no clue....</p>