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 0f7a543 commit 293a9a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tf/step2_cf_rt53/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 @@ -54,4 +56,4 @@ resource "aws_cloudfront_distribution" "cdn_static_site" {
aliases = [
var.domain_name
]
}
}

0 comments on commit 293a9a2

Please sign in to comment.