autoscaling |
Auto Scaling Configuration |
object({ scale_in = optional(object({ evaluation_periods = optional(number, 5) cooldown = optional(number, 300) interval_period = optional(number, 60) }), {})
scale_out = optional(object({ evaluation_periods = optional(number, 3) cooldown = optional(number, 60) interval_period = optional(number, 60) }), {})
min_size = optional(number, 1) max_size = optional(number, 3) }) |
{ "max_size": 3, "min_size": 1, "scale_in": { "cooldown": 300, "evaluation_period": 5, "interval_period": 60 }, "scale_out": { "cooldown": 60, "evaluation_period": 3, "interval_period": 60 } } |
no |
metric |
Target Metric Configuration |
object({ name = optional(string, "MemoryUtilization") # Available built-in metrics: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cloudwatch-metrics.html#ecs-metrics statistic_type = optional(string, "Average") # Available built-in statistic type: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html target_high = optional(number, 85) target_low = optional(number, 30) }) |
{ "name": "MemoryUtilization", "statistic_type": "Average", "target_high": 85, "target_low": 30 } |
no |