Skip to content

Commit

Permalink
Update cloudfront.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
kariemoorman committed Apr 26, 2024
1 parent 293a9a2 commit 1bbc44d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tf/step2_cf-only/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ resource "aws_cloudfront_distribution" "cdn_static_site" {
default_root_object = "index.html"
comment = "Cloudfront in front of s3 bucket"

wait_for_deployment = true

origin {
domain_name = aws_s3_bucket.week1-bucket.bucket_regional_domain_name
origin_id = "s3-origin"
Expand Down Expand Up @@ -48,4 +50,4 @@ resource "aws_cloudfront_distribution" "cdn_static_site" {
viewer_certificate {
cloudfront_default_certificate = true
}
}
}

0 comments on commit 1bbc44d

Please sign in to comment.