Commit e132823
Empty ssl_support_method when using cloudfront default certificate (#46)
The current implementation always uses "sni-only" as
`ssl_support_method` in `viewer_certificate` configuration.
According to Terraform documentation [0] this option is required
only when using `acm_certificate_arn` or `iam_certificate_id`.
In our experience this leads to a situation where Terraform
tries to set `ssl_support_method` to "sni-only" at each
run spending several time trying to do it (~10 minutes) without
effectively setting anything (it doesn't fail though).
With this commit we check the value of `acm_certificate_arn` and set the
proper `ssl_support_method` only if such value is defined.
[0] https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#ssl_support_method
Co-authored-by: Andriy Knysh <[email protected]>1 parent b7221b0 commit e132823
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
0 commit comments