Skip to content

Commit

Permalink
Add variable for number of desired service instances (#140)
Browse files Browse the repository at this point in the history
* Update variables.tf

* Update locals.tf

* Update locals.tf

* Update locals.tf
  • Loading branch information
roy-dydx authored Sep 30, 2024
1 parent 489c2cf commit 123ae97
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
6 changes: 3 additions & 3 deletions indexer/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ locals {
),
},
"${local.service_names["comlink"]}" : {
ecs_desired_count : 5,
ecs_desired_count : var.comlink_ecs_desired_count,
task_definition_memory : 4096,
task_definition_cpu : 2048,
is_public_facing : true,
Expand Down Expand Up @@ -101,7 +101,7 @@ locals {
),
},
"${local.service_names["socks"]}" : {
ecs_desired_count : 5,
ecs_desired_count : var.socks_ecs_desired_count,
task_definition_memory : 20480,
task_definition_cpu : 4096,
is_public_facing : true,
Expand Down Expand Up @@ -203,7 +203,7 @@ locals {
),
},
"${local.service_names["vulcan"]}" : {
ecs_desired_count : 5,
ecs_desired_count : var.vulcan_ecs_desired_count,
task_definition_memory : 8192,
task_definition_cpu : 4096,
is_public_facing : false,
Expand Down
18 changes: 18 additions & 0 deletions indexer/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -478,3 +478,21 @@ variable "image_count" {
description = "Number of images to store for ECR, defaults to 100."
default = 100
}

variable "vulcan_ecs_desired_count" {
type = number
description = "Number of desired vulcan instances."
default = 5
}

variable "comlink_ecs_desired_count" {
type = number
description = "Number of desired comlinnk instances."
default = 5
}

variable "socks_ecs_desired_count" {
type = number
description = "Number of desired socks instances."
default = 5
}

0 comments on commit 123ae97

Please sign in to comment.