Skip to content

Commit

Permalink
ajuste bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoclessa committed Jul 18, 2023
1 parent 611026a commit 385754f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions template_s3/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ resource "aws_cloudfront_distribution" "cloudfront" {
is_ipv6_enabled = true
default_root_object = var.cloudfront_default_root_object
http_version = var.cloudfront_http_version

depends_on = [
aws_acm_certificate_validation.certificate_validation
]
aliases = [var.cdn_domain]
origin {
origin_id = aws_s3_bucket.bucket.id
origin_access_control_id = aws_cloudfront_origin_access_control.cloudfront_acl.id
domain_name = aws_s3_bucket.bucket.bucket_regional_domain_name
depends_on = [
aws_acm_certificate_validation.certificate_validation
]
}
}

default_cache_behavior {
target_origin_id = aws_s3_bucket.bucket.id
Expand Down

0 comments on commit 385754f

Please sign in to comment.