troydieter / cachet-tf

Cachet deployed on AWS via Terraform
Apache License 2.0
0 stars 0 forks source link

[WARN] A duplicate Security Group rule was found #5

Closed troydieter closed 2 years ago

troydieter commented 2 years ago

Current issue with deployment:

╷
│ Error: [WARN] A duplicate Security Group rule was found on (sg-00c413f10db70a6fe). 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: InvalidPermission.Duplicate: the specified rule "peer: sg-0890ecda64865b974, TCP, from port: 80, to port: 80, ALLOW" already exists
│       status code: 400, request id: ebb8e613-38f2-4234-bb08-2dc7e538e2d7
│
│   with module.fargate.module.ecs-fargate-service.aws_security_group_rule.ingress_through_https["80"],
│   on .terraform/modules/fargate.ecs-fargate-service/main.tf line 168, in resource "aws_security_group_rule" "ingress_through_https":
│  168: resource "aws_security_group_rule" "ingress_through_https" {
│
╵
troydieter commented 2 years ago

Resolved, erroneous error