Skip to content

Commit

Permalink
fix: handle viewer_certificate.ssl_support_method with CF default cer…
Browse files Browse the repository at this point in the history
…tificate (#213)

* fix: handle viewer_certificate.ssl_support_method with CF certificates

Co-authored-by: cloudpossebot <[email protected]>
Co-authored-by: Yonatan Koren <[email protected]>
  • Loading branch information
3 people authored Jan 27, 2022
1 parent c19ddbd commit 076c5bf
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 @@ -463,7 +463,7 @@ resource "aws_cloudfront_distribution" "default" {

viewer_certificate {
acm_certificate_arn = var.acm_certificate_arn
ssl_support_method = "sni-only"
ssl_support_method = local.use_default_acm_certificate ? null : "sni-only"
minimum_protocol_version = local.minimum_protocol_version
cloudfront_default_certificate = local.use_default_acm_certificate
}
Expand Down

0 comments on commit 076c5bf

Please sign in to comment.