Skip to content

Commit

Permalink
ajuste site
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoclessa committed Jul 18, 2023
1 parent b290dbf commit 89529f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions template_s3/certificate.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
resource "aws_acm_certificate" "certificate" {
domain_name = var.route53_zone_domain
validation_method = "DNS"

tags = {
Template = S3
}
}

resource "aws_acm_certificate_validation" "certificate_validation" {
Expand Down
5 changes: 1 addition & 4 deletions template_s3/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resource "aws_cloudfront_distribution" "cloudfront" {
default_root_object = var.cloudfront_default_root_object
http_version = var.cloudfront_http_version

aliases = local.cdn_domain != "" ? [local.cdn_domain] : local.route53_base_domain != "" ? [local.route53_base_domain] : []
aliases = var.cdn_domain

origin {
origin_id = aws_s3_bucket.bucket.id
Expand Down Expand Up @@ -57,9 +57,6 @@ resource "aws_cloudfront_distribution" "cloudfront" {
acm_certificate_arn = aws_acm_certificate_validation.certificate_validation.certificate_arn
}

tags = {
Template = S3
}

depends_on = [
aws_s3_bucket.bucket
Expand Down

0 comments on commit 89529f3

Please sign in to comment.