forked from philips-software/terraform-aws-cloudfront-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
149 lines (124 loc) · 4.89 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
variable "organization" {
description = "Org name for humans."
type = string
}
variable "environment" {
description = "Logical name of the environment."
type = string
}
variable "name" {
description = "Logical name for the distribution."
type = string
}
variable "enable_route53_record" {
type = bool
default = true
}
variable "dns_name" {
description = "Domain for create route53 records, mandory by default."
type = string
default = ""
}
variable "dns_zone_name" {
description = "Zone in which to create route53 records"
type = string
default = ""
}
variable "ssl_certificate_arn" {
description = "The certificate ARN for the provided domain. Be aware that for cloud front the certicate needs to be available in us-east-1."
type = string
default = ""
}
variable "min_ttl" {
description = "The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. Defaults to 0 seconds."
type = number
default = 0
}
variable "default_ttl" {
description = "The default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request in the absence of an Cache-Control max-age or Expires header. Defaults to 1 day."
type = number
default = 86400
}
variable "max_ttl" {
description = "The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. Only effective in the presence of Cache-Control max-age, Cache-Control s-maxage, and Expires headers. Defaults to 365 days."
type = number
default = 31536000
}
variable "default_root_object" {
description = "The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL."
type = string
default = "index.html"
}
variable "price_class" {
description = "The price class for this distribution. One of PriceClass_All, PriceClass_200, PriceClass_100"
type = string
default = "PriceClass_100"
}
variable "ssl_minimum_protocol_version" {
description = "The minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections. One of SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016 or TLSv1.2_2018. Default: TLSv1. "
type = string
default = "TLSv1.2_2018"
}
variable "tags" {
description = "A map of tags to add to the resources"
type = map(string)
default = {}
}
variable "default_cache_behavior_allowed_methods" {
description = "Controls whether CloudFront caches the response to requests using the specified HTTP methods."
type = list(string)
default = ["GET", "HEAD"]
}
variable "default_cache_behavior_cached_methods" {
description = "Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin."
type = list(string)
default = ["GET", "HEAD"]
}
variable "default_cache_behavior_compress" {
description = "Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header (default: false)."
type = bool
default = false
}
variable "default_cache_trusted_key_groups" {
description = "Trusted key groups for URL signing"
type = list(string)
default = []
}
variable "default_cache_viewer_response_fun_arn" {
type = string
}
variable "restrictions_geo_restriction_location" {
description = "The ISO 3166-1-alpha-2 codes for which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist)."
type = list(any)
default = []
}
variable "restrictions_geo_restriction_restriction_type" {
description = " The method that you want to use to restrict distribution of your content by country: none, whitelist, or blacklist."
type = string
default = "none"
}
variable "bucket_name" {
description = "Name for the bucket."
type = string
default = ""
}
variable "bucket_acl" {
description = "The canned ACL to apply. Defaults to private."
type = string
default = "private"
}
variable "bucket_versioning" {
description = "A state of versioning"
type = bool
default = false
}
variable "bucket_force_destroy" {
description = "A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable."
type = bool
default = false
}
variable "custom_error_response" {
description = "One or more custom error response elements (multiples allowed), see https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html#custom-error-response-arguments"
type = list(map(string))
default = []
}