Skip to content

Commit

Permalink
Merge pull request #24 from grupoboticario/adjust_bucket_resources
Browse files Browse the repository at this point in the history
Change domain name to regional domain name
  • Loading branch information
pjuniorlima authored May 2, 2022
2 parents 0dbbd34 + c5e7384 commit 10a0408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site-redirect/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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_bucket.id}.${aws_s3_bucket_website_configuration.website_bucket.website_domain}"
domain_name = aws_s3_bucket.website_bucket.bucket_regional_domain_name

s3_origin_config {
origin_access_identity = aws_cloudfront_origin_access_identity.origin_access_identity.cloudfront_access_identity_path
Expand Down

0 comments on commit 10a0408

Please sign in to comment.