Doesnt import security groups with non-unique names properly
If i have two security groups named foo it will generate duplicate aws_security_group.foo blocks, which cause a non-unique issue in terraform
1 error(s) occurred:
* module root: 1 error(s) occurred:
* aws_security_group.foo: resource repeated multiple times
Are the security groups in VPC? If so, Terraforming adds VPC ID as prefix to avoid duplication.
Because I don't have EC2-Classic environments, I can't reproduce the behavior. Is the duplication of Security Group names allowed in EC2-Classic?
They are in VPC, and it does prefix them, but you can still have multiple security groups with the same name in AWS (in a vpc or not), but in TF you cant (vpc_a_foo is still a conflict with vpc_a_foo)
This applies to https://github.com/dtan4/terraforming/issues/312 and to every other situation in which a resource can have a similar value for the Name tag.
What's the fix @dtan4 ? This bug is over a year ago.
Did this get fixed?