From 1cfa4c4885fbf772c5014451447a2f0c1a762a5c Mon Sep 17 00:00:00 2001 From: Frank van Boven Date: Thu, 18 Jun 2020 16:23:22 +0200 Subject: [PATCH] Add dependency to the certificate validatiom --- main.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.tf b/main.tf index 9ef5d4b..5c277cb 100644 --- a/main.tf +++ b/main.tf @@ -143,4 +143,6 @@ resource "aws_cloudfront_distribution" "default" { response_page_path = lookup(custom_error_response.value, "response_page_path", null) } } + + depends_on = [aws_acm_certificate_validation.default] }