Skip to content

Commit

Permalink
added autoscaling_*_size
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkotof committed Feb 3, 2022
1 parent 32e452d commit e1a95cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ecs-modules/ecs-service/autoscaling.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ resource "aws_appautoscaling_target" "this" {
scalable_dimension = "ecs:service:DesiredCount"
service_namespace = "ecs"

depends_on = [aws_ecs_service.this[0]]
depends_on = [
aws_ecs_service.this_deployed[0],
aws_ecs_service.this[0],
]
}

# REF: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appautoscaling_policy
Expand Down
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ module "service" {
autoscale_scheduled_down = var.autoscale_scheduled_down
autoscale_target_value_cpu = var.autoscale_target_value_cpu
autoscale_target_value_memory = var.autoscale_target_value_memory
autoscaling_min_size = var.autoscaling_min_size
autoscaling_max_size = var.autoscaling_max_size

docker_container_entrypoint = var.docker_container_entrypoint
docker_container_command = var.docker_container_command
Expand Down

0 comments on commit e1a95cf

Please sign in to comment.