k
Size: a a a
k
AR
AR
VT
ac
ac
AR
ac
A.
resource "aws_autoscaling_attachment" "traefik_asg_attachment_ext" {
alb_target_group_arn = aws_alb_target_group.traefik_target_group_ext.arn
autoscaling_group_name = aws_autoscaling_group.nodePool["kubsystem"].id
}resource "aws_autoscaling_attachment" "traefik_asg_attachment_int" {
alb_target_group_arn = aws_alb_target_group.traefik_target_group_int.arn
autoscaling_group_name = aws_autoscaling_group.nodePool["kubsystem"].id
}Error: Invalid index
on modules/aws/alb.tf line 181, in resource "aws_autoscaling_attachment" "traefik_asg_attachment_ext":
181: autoscaling_group_name = aws_autoscaling_group.nodePool["kubsystem"].id
|----------------
| aws_autoscaling_group.nodePool is object with 3 attributes
The given key does not identify an element in this collection value.
Error: Invalid index
on modules/aws/alb.tf line 186, in resource "aws_autoscaling_attachment" "traefik_asg_attachment_int":
186: autoscaling_group_name = aws_autoscaling_group.nodePool["kubsystem"].id
|----------------
| aws_autoscaling_group.nodePool is object with 3 attributes
The given key does not identify an element in this collection value.
A.
VT
aws_autoscaling_group.nodePool is object with 3 attributesaws_autoscaling_group.nodePool - это один ресурс. Какой еще kubsystem? К артибутам обращаются через точку .A.
aws_autoscaling_group.nodePool is object with 3 attributesaws_autoscaling_group.nodePool - это один ресурс. Какой еще kubsystem? К артибутам обращаются через точку .A.
VT
aws_autoscaling_group.nodePool["kubsystem"].idA.
aws_autoscaling_group.nodePool["kubsystem"].idOB
aws_autoscaling_group.nodePool is object with 3 attributes - “тож верно”. Если ты хочешь чтобы тебе помогли - обьясни проблему нормально, а не “тож верно”.VT
aws_autoscaling_group.nodePool is object with 3 attributes - “тож верно”. Если ты хочешь чтобы тебе помогли - обьясни проблему нормально, а не “тож верно”.A.
A.
A.