Skip to content

Commit

Permalink
Fix CloudFront default certificate (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Burnham authored and aknysh committed May 4, 2018
1 parent 6859950 commit 44120cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ resource "aws_cloudfront_distribution" "default" {
acm_certificate_arn = "${var.acm_certificate_arn}"
ssl_support_method = "sni-only"
minimum_protocol_version = "${var.viewer_minimum_protocol_version}"
cloudfront_default_certificate = true
cloudfront_default_certificate = "${var.acm_certificate_arn == "" ? true : false}"
}

default_cache_behavior {
Expand Down

0 comments on commit 44120cc

Please sign in to comment.