Skip to content

Commit

Permalink
feat: new output alb_target_group_names
Browse files Browse the repository at this point in the history
To be used in conjunction with [AppAutoscaling](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_PredefinedScalingMetricSpecification.html) with `ALBRequestCountPerTarget`
  • Loading branch information
thisismana committed Sep 21, 2023
1 parent 5d43b17 commit e9023ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ resource "aws_appautoscaling_policy" "ecs" {

predefined_metric_specification {
predefined_metric_type = lookup(var.appautoscaling_settings, "predefined_metric_type", "ECSServiceAverageCPUUtilization")
resource_label = lookup(var.appautoscaling_settings, "resource_label")
}
}
}
5 changes: 2 additions & 3 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ output "task_execution_role_unique_id" {
value = try(aws_iam_role.task_execution_role[0].unique_id, "")
}

// TODO: this output should not start with "aws"
output "aws_alb_target_group_arns" {
output "alb_target_group_arns" {
description = "ARNs of the created target groups."
value = aws_alb_target_group.main[*].arn
}
}

0 comments on commit e9023ae

Please sign in to comment.