Skip to content

Commit

Permalink
Merge pull request #28 from dxw/enable-ecs-cluster-autoscaling-group-…
Browse files Browse the repository at this point in the history
…metrics

Enable ECS Cluster autoscaling group metrics
  • Loading branch information
Stretch96 authored Jan 2, 2024
2 parents 8bceca6 + 85801bd commit 6f74e49
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ecs-cluster-infrastructure.tf
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,30 @@ resource "aws_autoscaling_group" "infrastructure_ecs_cluster" {
timeouts {
delete = "15m"
}

enabled_metrics = [
"GroupAndWarmPoolDesiredCapacity",
"GroupAndWarmPoolTotalCapacity",
"GroupDesiredCapacity",
"GroupInServiceCapacity",
"GroupInServiceInstances",
"GroupMaxSize",
"GroupMinSize",
"GroupPendingCapacity",
"GroupPendingInstances",
"GroupStandbyCapacity",
"GroupStandbyInstances",
"GroupTerminatingCapacity",
"GroupTerminatingInstances",
"GroupTotalCapacity",
"GroupTotalInstances",
"WarmPoolDesiredCapacity",
"WarmPoolMinSize",
"WarmPoolPendingCapacity",
"WarmPoolTerminatingCapacity",
"WarmPoolTotalCapacity",
"WarmPoolWarmedCapacity",
]
}

resource "aws_sns_topic" "infrastructure_ecs_cluster_autoscaling_lifecycle_termination" {
Expand Down

0 comments on commit 6f74e49

Please sign in to comment.