File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed
Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ Available targets:
112112| log_standard_transition_days | Number of days to persist in the standard storage tier before moving to the glacier tier | string | ` 30 ` | no |
113113| max_ttl | Maximum amount of time (in seconds) that an object is in a CloudFront cache | string | ` 31536000 ` | no |
114114| min_ttl | Minimum amount of time that you want objects to stay in CloudFront caches | string | ` 0 ` | no |
115+ | minimum_protocol_version | Cloudfront TLS minimum protocol version | string | ` TLSv1 ` | no |
115116| name | Name (e.g. ` bastion ` or ` db ` ) | string | - | yes |
116117| namespace | Namespace (e.g. ` cp ` or ` cloudposse ` ) | string | - | yes |
117118| null | an empty string | string | `` | no |
Original file line number Diff line number Diff line change 3232| log_standard_transition_days | Number of days to persist in the standard storage tier before moving to the glacier tier | string | ` 30 ` | no |
3333| max_ttl | Maximum amount of time (in seconds) that an object is in a CloudFront cache | string | ` 31536000 ` | no |
3434| min_ttl | Minimum amount of time that you want objects to stay in CloudFront caches | string | ` 0 ` | no |
35+ | minimum_protocol_version | Cloudfront TLS minimum protocol version | string | ` TLSv1 ` | no |
3536| name | Name (e.g. ` bastion ` or ` db ` ) | string | - | yes |
3637| namespace | Namespace (e.g. ` cp ` or ` cloudposse ` ) | string | - | yes |
3738| null | an empty string | string | `` | no |
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ resource "aws_cloudfront_distribution" "default" {
132132 viewer_certificate {
133133 acm_certificate_arn = " ${ var . acm_certificate_arn } "
134134 ssl_support_method = " sni-only"
135- minimum_protocol_version = " TLSv1 "
135+ minimum_protocol_version = " ${ var . minimum_protocol_version } "
136136 cloudfront_default_certificate = " ${ var . acm_certificate_arn == " " ? true : false } "
137137 }
138138
Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ variable "acm_certificate_arn" {
4141 default = " "
4242}
4343
44+ variable "minimum_protocol_version" {
45+ description = " Cloudfront TLS minimum protocol version"
46+ default = " TLSv1"
47+ }
48+
4449variable "aliases" {
4550 type = " list"
4651 description = " List of FQDN's - Used to set the Alternate Domain Names (CNAMEs) setting on Cloudfront"
You can’t perform that action at this time.
0 commit comments