Skip to content

Commit

Permalink
infra: scale down (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio authored Oct 16, 2023
1 parent a7604e2 commit bc021be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion terraform/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module "ecs_cluster" {
security_groups = [aws_security_group.ecs.id]
instance_types = local.ecs.instance_types

min_size = 2
min_size = 1
max_size = 3
minimum_scaling_step_size = 1
maximum_scaling_step_size = 1
Expand Down
4 changes: 2 additions & 2 deletions terraform/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ locals {

db = {
name = "votemonitor"
instance_class = "db.t4g.medium"
# instance_class = "db.t4g.micro"
instance_class = "db.t4g.micro"
# instance_class = "db.t4g.medium"
}

networking = {
Expand Down
4 changes: 2 additions & 2 deletions terraform/service_api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module "ecs_api" {

name = "api-${var.env}"
cluster_name = module.ecs_cluster.cluster_name
min_capacity = 2
max_capacity = 4
min_capacity = 1
max_capacity = 3

image_repo = local.images.api.image
image_tag = local.images.api.tag
Expand Down

0 comments on commit bc021be

Please sign in to comment.