Skip to content

Commit

Permalink
Merge pull request #762 from companieshouse/feature/update-terraform
Browse files Browse the repository at this point in the history
Feature/update terraform
  • Loading branch information
iahmed-ch authored Sep 5, 2024
2 parents 2ad35d2 + 273b329 commit 43333fa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions terraform/groups/ecs-service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {
}

module "secrets" {
source = "[email protected]:companieshouse/terraform-modules//aws/ecs/secrets?ref=1.0.245"
source = "[email protected]:companieshouse/terraform-modules//aws/ecs/secrets?ref=1.0.287"

name_prefix = "${local.service_name}-${var.environment}"
environment = var.environment
Expand All @@ -29,7 +29,7 @@ module "secrets" {
}

module "ecs-service" {
source = "[email protected]:companieshouse/terraform-modules//aws/ecs/ecs-service?ref=1.0.245"
source = "[email protected]:companieshouse/terraform-modules//aws/ecs/ecs-service?ref=1.0.287"

# Environmental configuration
environment = var.environment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ aws_profile = "development-eu-west-2"

# service configs
use_set_environment_files = true
log_level = "debug"
log_level = "debug"

# Scheduled scaling of tasks
service_autoscale_enabled = true
service_scaledown_schedule = "55 19 * * ? *"
service_scaleup_schedule = "5 6 * * ? *"
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ aws_profile = "development-eu-west-2"

# service configs
use_set_environment_files = true
log_level = "debug"
log_level = "debug"

# Scheduled scaling of tasks
service_autoscale_enabled = true
service_scaledown_schedule = "55 19 * * ? *"
service_scaleup_schedule = "5 6 * * ? *"
2 changes: 1 addition & 1 deletion terraform/groups/ecs-service/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ variable "service_autoscale_enabled" {
variable "service_autoscale_target_value_cpu" {
type = number
description = "Target CPU percentage for the ECS Service to autoscale on"
default = 50 # 100 disables autoscaling using CPU as a metric
default = 80 # 100 disables autoscaling using CPU as a metric
}
variable "service_scaledown_schedule" {
type = string
Expand Down

0 comments on commit 43333fa

Please sign in to comment.