You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aws_lb_listener.alb_80 will map to target_group_name = "B"
aws_lb_listener.alb_81 will map to target_group_name = "A"
However, I think the opposite actually happens. The module uses the following code for outputs:
output"target_group_arn" {
description="The ARN of the Target Group used by Load Balancer."value=[fortg_arninaws_lb_target_group.task:tg_arn.arn]
}
The for expression can modify the ordering of the input target_groups list. From terraform's documentation:
Because for expressions can convert from unordered types (maps, objects, sets) to ordered types (lists, tuples), Terraform must > choose an implied ordering for the elements of an unordered collection.
For maps and objects, Terraform sorts the elements by key or attribute name, using lexical sorting.
Can you confirm whether my understanding of the problem is correct?
The text was updated successfully, but these errors were encountered:
Suppose we have the following setup:
The above code reads as though:
aws_lb_listener.alb_80
will map totarget_group_name = "B"
aws_lb_listener.alb_81
will map totarget_group_name = "A"
However, I think the opposite actually happens. The module uses the following code for outputs:
The
for
expression can modify the ordering of the inputtarget_groups
list. From terraform's documentation:Can you confirm whether my understanding of the problem is correct?
The text was updated successfully, but these errors were encountered: