Skip to content

Commit

Permalink
Merge pull request #80 from companieshouse/feature/dsnd-3056_increase…
Browse files Browse the repository at this point in the history
…_resources

DSND-3056: Increase resources
  • Loading branch information
johncook-ch authored Sep 6, 2024
2 parents 84ebf61 + 8a3b0c9 commit 3cbe602
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/groups/ecs-service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module "ecs-service" {
name_prefix = local.name_prefix
desired_task_count = var.desired_task_count
max_task_count = var.max_task_count
min_task_count = var.min_task_count
required_cpus = var.required_cpus
required_memory = var.required_memory
service_autoscale_enabled = var.service_autoscale_enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ environment = "live"
aws_profile = "live-eu-west-2"
# service configs
use_set_environment_files = true

min_task_count = 2
max_task_count = 3
required_cpus = 768
required_memory = 1536
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ aws_profile = "staging-eu-west-2"
# service configs
use_set_environment_files = true

min_task_count = 1
max_task_count = 2
required_cpus = 768
required_memory = 1536

# scaling configs
service_autoscale_enabled = true
service_scaledown_schedule = "55 19 * * ? *"
Expand Down
5 changes: 5 additions & 0 deletions terraform/groups/ecs-service/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ variable "max_task_count" {
description = "The maximum number of tasks for this service."
default = 3
}
variable "min_task_count" {
default = 1
type = number
description = "The minimum number of tasks for this service."
}
variable "required_cpus" {
type = number
description = "The required cpu resource for this service. 1024 here is 1 vCPU"
Expand Down

0 comments on commit 3cbe602

Please sign in to comment.