@@ -47,26 +47,25 @@ resource "aws_cloudfront_distribution" "fpjs_cloudfront_distribution" {
47
47
}
48
48
}
49
49
50
- aliases = [var . proxy_subdomain_domain ]
51
- viewer_certificate {
52
- acm_certificate_arn = var. certificate_arn
53
- ssl_support_method = " sni-only"
54
- }
55
-
56
- # If don't want to serve the distribution from a subdomain for now, use the default certificate instead
57
- # (comment out `viewer_certificate` and `aliases` above and use the `viewer_certificate` below)
58
-
50
+ # You can make the distribution available on a subdomain of your website
51
+ # Uncomment the following and define the referenced variables
52
+ # aliases = [var.proxy_subdomain_domain]
59
53
# viewer_certificate {
60
- # cloudfront_default_certificate = true
54
+ # acm_certificate_arn = var.certificate_arn
55
+ # ssl_support_method = "sni-only"
61
56
# }
57
+
58
+
59
+ viewer_certificate {
60
+ cloudfront_default_certificate = true
61
+ }
62
62
}
63
63
64
64
# You can make the distribution available on a subdomain of your website
65
- # (comment this out if you don't want to do that for now)
66
- resource "aws_route53_record" "cloudfront_terraform_new_distribution_record" {
67
- zone_id = var. domain_zone_id
68
- name = var. proxy_subdomain_domain
69
- type = " CNAME"
70
- ttl = 300
71
- records = [aws_cloudfront_distribution . fpjs_cloudfront_distribution . domain_name ]
72
- }
65
+ # resource "aws_route53_record" "cloudfront_terraform_new_distribution_record" {
66
+ # zone_id = var.domain_zone_id
67
+ # name = var.proxy_subdomain_domain
68
+ # type = "CNAME"
69
+ # ttl = 300
70
+ # records = [aws_cloudfront_distribution.fpjs_cloudfront_distribution.domain_name]
71
+ # }
0 commit comments