From baf9268eaf202d1511bfbc22332743de700ff293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20J=C3=BAnior=20do=20Nascimento=20Lima?= Date: Mon, 2 May 2022 18:34:41 -0300 Subject: [PATCH] Change origin domain name --- site-redirect/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-redirect/main.tf b/site-redirect/main.tf index 423cec7..d8e58c7 100644 --- a/site-redirect/main.tf +++ b/site-redirect/main.tf @@ -108,7 +108,7 @@ resource "aws_cloudfront_distribution" "website_cdn" { origin { origin_id = "origin-bucket-${aws_s3_bucket.website_bucket.id}" - domain_name = aws_s3_bucket_website_configuration.website_bucket.website_domain + domain_name = "${aws_s3_bucket.website_bucket.id}.${aws_s3_bucket_website_configuration.website_bucket.website_domain}" s3_origin_config { origin_access_identity = aws_cloudfront_origin_access_identity.origin_access_identity.cloudfront_access_identity_path