-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdev.tf
28 lines (26 loc) · 1.47 KB
/
dev.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module "dev_config" {
source = "./env-config"
project_name = local.project_name
app_name = local.app_name
default_region = module.project_config.default_region
environment = "dev"
account_name = "dev"
network_name = "dev"
domain_name = null
enable_https = false
has_database = local.has_database
has_incident_management_service = local.has_incident_management_service
# https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html
# https://us-east-1.console.aws.amazon.com/ecs/v2/clusters/frontend-dev/services/frontend-dev/health?region=us-east-1
# instance_desired_instance_count and instance_scaling_min_capacity are scaled for the average CPU and Memory
# seen over 12 months, as of November 2024 exlucing an outlier range around February 2024.
# With a minimum of 2, so CPU doesn't spike to infinity on deploys.
instance_desired_instance_count = 2
instance_scaling_min_capacity = 2
# instance_scaling_max_capacity is 5x the instance_scaling_min_capacity
instance_scaling_max_capacity = 10
# Enables ECS Exec access for debugging or jump access.
# See https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html
# Defaults to `false`. Uncomment the next line to enable.
# enable_command_execution = true
}