Skip to content

Commit

Permalink
Explicitly depend on the valid certificate to avoid the error
Browse files Browse the repository at this point in the history
  • Loading branch information
antonputra committed Sep 16, 2022
1 parent f4642b1 commit 124119c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lessons/127/terraform/7-example-2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ resource "aws_lb_listener" "my_app_eg2_tls" {
type = "forward"
target_group_arn = aws_lb_target_group.my_app_eg2.arn
}

depends_on = [aws_acm_certificate_validation.api]
}

output "custom_domain" {
Expand Down

0 comments on commit 124119c

Please sign in to comment.