Skip to content

Commit b082a13

Browse files
jschaulosterman
authored andcommitted
Make minimim_protocol_version configurable (#20)
1 parent 4e20f9c commit b082a13

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 |

docs/terraform.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
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 |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
4449
variable "aliases" {
4550
type = "list"
4651
description = "List of FQDN's - Used to set the Alternate Domain Names (CNAMEs) setting on Cloudfront"

0 commit comments

Comments
 (0)