Pārlūkot izejas kodu

enable ENA image detection

Chris Mague 3 gadi atpakaļ
vecāks
revīzija
5917722cdd
2 mainītis faili ar 21 papildinājumiem un 50 dzēšanām
  1. 6 1
      inputs.tf
  2. 15 49
      variables.tf

+ 6 - 1
inputs.tf

@@ -13,4 +13,9 @@ data "aws_ami" "re-ami" {
     name   = "virtualization-type"
     values = ["hvm"]
   }
-}
+
+  filter {
+    name   = "ena-support"
+    values = [var.ena-support]
+  }
+}

+ 15 - 49
variables.tf

@@ -56,6 +56,21 @@ variable "re-instance-type" {
   default     = "t2.2xlarge"
 }
 
+variable "ena-support" {
+  description = "choose AMIs that have ENA support enabled"
+  default     = false
+}
+
+variable "tester-node-type" {
+  description = "Set this to a type if you want to run a tester node"
+  default     = ""
+}
+
+variable "quorum-node-type" {
+  description = "Set this to a type if you want to use a quorum node"
+  default     = ""
+}
+
 variable "re-volume-size" {
   description = "The size of the two volumes to attach"
   default     = "150"
@@ -218,55 +233,6 @@ 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"
-    },
-    {
-      type      = "ingress"
-      from_port = "8300"
-      to_port   = "8300"
-      protocol  = "tcp"
-      comment   = "Consul Traffic Internal"
-    },
   ]
 }