Browse Source

Merge pull request #649 from mdr-engineering/feature/ftd_MSOCI-2162_ReserveDGIInstances

Records reservations for DGI
Frederick Damstra 3 years ago
parent
commit
bf37558523

+ 5 - 0
prod/aws-us-gov/mdr-prod-dgi/150-splunk-cluster-master/terragrunt.hcl

@@ -34,6 +34,11 @@ inputs = {
     Purpose   = "Splunk Cluster Master"
     Terraform = "aws/${basename(get_parent_terragrunt_dir())}/${path_relative_to_include()}/"
   }
+  instance_tags = {
+    Reserved               = true
+    Reserved_Type          = "m5a.xlarge"
+    Reservation_Expiration = "2023-04-09"
+  }
   prefix        = local.account_vars.locals.splunk_prefix
   instance_type = local.account_vars.locals.instance_types["splunk-cm"]
   vpc_id        = dependency.vpc.outputs.vpc_id

+ 17 - 0
prod/aws-us-gov/mdr-prod-dgi/160-splunk-indexer-cluster/terragrunt.hcl

@@ -34,6 +34,23 @@ inputs = {
     Purpose   = "Splunk Indexer Cluster"
     Terraform = "aws/${basename(get_parent_terragrunt_dir())}/${path_relative_to_include()}/"
   }
+  instance_tags = [
+    {
+      Reserved               = true
+      Reserved_Type          = "i3en.3xlarge"
+      Reservation_Expiration = "2023-04-09"
+    },
+    {
+      Reserved               = true
+      Reserved_Type          = "i3en.3xlarge"
+      Reservation_Expiration = "2023-04-09"
+    },
+    {
+      Reserved               = false
+      Reserved_Type          = ""
+      Reservation_Expiration = ""
+    }
+  ]
   prefix          = local.account_vars.locals.splunk_prefix
   instance_type   = local.account_vars.locals.instance_types["splunk-indexer"]
   vpc_id          = dependency.vpc.outputs.vpc_id

+ 5 - 0
prod/aws-us-gov/mdr-prod-dgi/170-splunk-searchhead/terragrunt.hcl

@@ -34,6 +34,11 @@ inputs = {
     Purpose   = "Splunk Searchhead"
     Terraform = "aws/${basename(get_parent_terragrunt_dir())}/${path_relative_to_include()}/"
   }
+  instance_tags = {
+    Reserved               = true
+    Reserved_Type          = "m5a.4xlarge"
+    Reservation_Expiration = "2023-04-09"
+  }
   prefix        = local.account_vars.locals.splunk_prefix
   instance_type = local.account_vars.locals.instance_types["splunk-sh"]
   vpc_id        = dependency.vpc.outputs.vpc_id

+ 5 - 0
prod/aws-us-gov/mdr-prod-dgi/180-splunk-heavy-forwarder/terragrunt.hcl

@@ -34,6 +34,11 @@ inputs = {
     Purpose   = "Splunk Heavy Forwarder"
     Terraform = "aws/${basename(get_parent_terragrunt_dir())}/${path_relative_to_include()}/"
   }
+  instance_tags = {
+    Reserved               = true
+    Reserved_Type          = "m5a.xlarge"
+    Reservation_Expiration = "2023-04-09"
+  }
   prefix        = local.account_vars.locals.splunk_prefix
   instance_type = local.account_vars.locals.instance_types["splunk-hf"]
   vpc_id        = dependency.vpc.outputs.vpc_id