Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Requirements

Name Version
terraform >= 1.6.0
aws >= 5.26.0

Providers

Name Version
aws >= 5.26.0

Modules

No modules.

Resources

Name Type
aws_appautoscaling_policy.scale_in resource
aws_appautoscaling_policy.scale_out resource
aws_appautoscaling_target.this resource
aws_cloudwatch_metric_alarm.firing resource
aws_cloudwatch_metric_alarm.relax resource

Inputs

Name Description Type Default Required
additional_alarm_actions Additional Alarm Action to be Executed list(string) [] no
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
cluster_name Name of ECS Cluster Name string n/a yes
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
name_prefix Prefix of the resources (cloudwatch, autoscaling policy) name string "ecs-service" no
service_name Name of ECS Service Name string n/a yes
tags Tags of Resources map(string) {} no

Outputs

No outputs.