Ver Fonte

add consul rules too

Chris Mague há 5 anos atrás
pai
commit
cdf4864111
1 ficheiros alterados com 42 adições e 0 exclusões
  1. 42 0
      variables.tf

+ 42 - 0
variables.tf

@@ -208,6 +208,48 @@ variable "internal-rules" {
       protocol  = "udp"
       comment   = "Let UDP out to the VPC"
     },
+    {
+      type = "ingress"
+      from_port = "8301"
+      to_port   = "8301"
+      protocol  = "udp"
+      comment   = "Consul Traffic Gossip"
+    },
+    {
+      type = "ingress"
+      from_port = "8301"
+      to_port   = "8301"
+      protocol  = "tcp"
+      comment   = "Consul Traffic Gossip"
+    },
+    {
+      type = "ingress"
+      from_port = "8600"
+      to_port   = "8600"
+      protocol  = "tcp"
+      comment   = "Consul Traffic DNS"
+    },
+    {
+      type = "ingress"
+      from_port = "8600"
+      to_port   = "8600"
+      protocol  = "udp"
+      comment   = "Consul Traffic DNS"
+    },
+    {
+      type = "ingress"
+      from_port = "8400"
+      to_port   = "8400"
+      protocol  = "tcp"
+      comment   = "Consul Traffic RPC"
+    },
+    {
+      type = "ingress"
+      from_port = "8500"
+      to_port   = "8500"
+      protocol  = "tcp"
+      comment   = "Consul Traffic HTTP"
+    },
     ]
   }