Skip to content

Commit

Permalink
Fix origin
Browse files Browse the repository at this point in the history
  • Loading branch information
pjuniorlima committed Jun 13, 2022
1 parent b32c618 commit 642578f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions site-redirect/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,13 @@ resource "aws_cloudfront_distribution" "website_cdn" {

origin {
origin_id = "origin-bucket-${aws_s3_bucket.website_bucket.id}"
domain_name = aws_s3_bucket.website_bucket.bucket_regional_domain_name
domain_name = aws_s3_bucket.website_bucket.website_endpoint

s3_origin_config {
origin_access_identity = aws_cloudfront_origin_access_identity.origin_access_identity.cloudfront_access_identity_path
custom_origin_config {
origin_protocol_policy = "http-only"
http_port = "80"
https_port = "443"
origin_ssl_protocols = ["TLSv1.2"]
}

custom_header {
Expand Down

0 comments on commit 642578f

Please sign in to comment.