@cryptotaxi247 / infra-1 / commits / 8bc5fc15

terraform: fix cloudfront distributions

the setting was ignored by AWS and the resource would never settle after a terraform apply

zimbatm committed Dec 16, 2018 at 16:50 UTC 8bc5fc15cd62708ac9e2d6aa52ecab4b5593b573
3 files changed +3 -3
terraform/cache.tf
+1 -1
@@ -63,7 +63,7 @@ resource "aws_cloudfront_distribution" "cache" {
63 }
64
65 viewer_certificate {
66 - cloudfront_default_certificate = true
66 + cloudfront_default_certificate = false
67 acm_certificate_arn = "${aws_acm_certificate.cache.arn}"
68 ssl_support_method = "sni-only"
69 }
terraform/nixpkgs-tarballs.tf
+1 -1
@@ -70,7 +70,7 @@ resource "aws_cloudfront_distribution" "nixpkgs-tarballs" {
70 }
71 }
72 viewer_certificate {
73 - cloudfront_default_certificate = true
73 + cloudfront_default_certificate = false
74 acm_certificate_arn = "${aws_acm_certificate.nixpkgs-tarballs.arn}"
75 ssl_support_method = "sni-only"
76 }
terraform/releases.tf
+1 -1
@@ -64,7 +64,7 @@ resource "aws_cloudfront_distribution" "releases" {
64 }
65
66 viewer_certificate {
67 - cloudfront_default_certificate = true
67 + cloudfront_default_certificate = false
68 acm_certificate_arn = "${aws_acm_certificate.releases.arn}"
69 ssl_support_method = "sni-only"
70 }