candidpartners / tf-rules

3 stars 1 forks source link

Catch security group rule that may interfere with what is in state #28

Open clearly opened 7 years ago

clearly commented 7 years ago

aws_security_group_rule.Database_egress_0: [WARN] A duplicate Security Group rule was found on (sg-1122334455). This may be a side effect of a now-fixed Terraform issue causing two security groups with identical attributes but different source_security_group_ids to overwrite each other in the state. See https://github.com/hashicorp/terraform/pull/2376 for more information and instructions for recovery. Error message: the specified rule "peer: 0.0.0.0/0, ALL, ALLOW" already exists

codergolem commented 6 years ago

Hello, Any resolution on this issue ? I have the same, sometimes terraform simply wants to create a security group that is already there and is tracked in the state file, and then it fails precisely because is already there.

ghost commented 6 years ago

Also seeing the same with 0.11.7, any resolution on this?

fasterthanl1ght commented 3 weeks ago

Hi, face it with Terraform v1.5.4 and AWS provider 3.76.1