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 7471f71
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ 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" {
description = "ARNs of the created target groups."
output "alb_target_group_arns" {
description = "ARNs of the created target groups as configured by var.target_groups."
value = aws_alb_target_group.main[*].arn
}

output "alb_target_group_names" {
description = "names of the created target groups as configured by var.target_groups."
value = aws_alb_target_group.main[*].name
}

0 comments on commit 7471f71

Please sign in to comment.