Lâu lâu run lại terraform cũ cài bị lỗi trên.
https://github.com/hashicorp/terraform/pull/2376
╷
│ Error: [WARN] A duplicate Security Group rule was found on (sg-097d3d8e8df7f57a4). 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-0057a36d87dd949a5, TCP, from port: 4443, to port: 4443, ALLOW" already exists
│ status code: 400, request id: 7c0a36cb-a591-4b33-9666-b8c6f1091a7b
│
│ with module.eks.aws_security_group_rule.node["ingress_cluster_4443_webhook"],
│ on .terraform/modules/eks/node_groups.tf line 207, in resource "aws_security_group_rule" "node":
│ 207: resource "aws_security_group_rule" "node" {
│
╵


Bạn cũng sẽ cân delete Rule đó trong Security Group.