From 1dac91e4d545e04ff5630216a15167c6a7d58c0c Mon Sep 17 00:00:00 2001 From: max funk Date: Fri, 19 Aug 2022 12:17:06 -0700 Subject: [PATCH] remove s3 attribute deprecation warning --- cloudfront.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudfront.tf b/cloudfront.tf index 6ae3f0a..5f8956b 100644 --- a/cloudfront.tf +++ b/cloudfront.tf @@ -9,7 +9,7 @@ resource "aws_cloudfront_distribution" "main" { origin { origin_id = "origin-${var.fqdn}" - domain_name = aws_s3_bucket.main.website_endpoint + domain_name = aws_s3_bucket_website_configuration.main.website_endpoint # https://docs.aws.amazon.com/AmazonCloudFront/latest/ # DeveloperGuide/distribution-web-values-specify.html