diff --git a/terraform/environments/ppud/alb_internal.tf b/terraform/environments/ppud/alb_internal.tf index 441d97df207..bcec3b719da 100644 --- a/terraform/environments/ppud/alb_internal.tf +++ b/terraform/environments/ppud/alb_internal.tf @@ -35,7 +35,7 @@ resource "aws_lb_listener" "PPUD-Front-End-Preprod" { resource "aws_lb_listener_certificate" "PPUD-Training-Certificate" { count = local.is-preproduction == true ? 1 : 0 - listener_arn = aws_lb_listener.PPUD-Front-End-Preprod.arn + listener_arn = aws_lb_listener.PPUD-Front-End-Preprod[0].arn certificate_arn = data.aws_acm_certificate.PPUD_Training_ALB[0].arn }