-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
266 lines (223 loc) · 7.32 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
variable "additional_certs" {
type = list(any)
description = "Additional SANs that will be added to the generated ACM certificate"
default = []
}
variable "additional_cloudfront_aliases" {
type = list(any)
description = "Additional aliases that will be added to CloudFront without being added as cert SANs"
default = []
}
variable "allow_bucket_force_destroy" {
type = bool
description = "Allow buckets to be destroyed when doing a terraform destroy"
default = true
}
variable "aws_account_name" {
type = string
description = "Name of the AWS account where this site lives"
}
variable "cors_allowed_headers" {
type = list(any)
description = "List of allowed headers for CORS"
default = ["NONE"]
}
variable "cors_allowed_methods" {
type = list(any)
description = "List of allowed methods for CORS"
default = ["GET", "HEAD", "OPTIONS"]
}
variable "content_security_policy" {
type = string
description = "The content security policy to use for the site"
default = "frame-ancestors 'self' https://*.tamu.edu"
}
variable "cors_allowed_origins" {
type = list(any)
description = "List of allowed origins for CORS"
default = ["none.edu"]
}
variable "css_ttl" {
type = number
description = "The number of seconds to cache CSS content"
default = 2592000
}
variable "def_html_ttl" {
type = number
description = "The number of seconds to cache HTML content"
default = 1801
}
variable "default_ttl" {
type = number
description = "Default number of seconds to cache content"
default = 60
}
variable "deployment" {
description = "The deployment environment, i.e. dev, staging, prod"
type = string
nullable = false
}
variable "error_response_403_path" {
type = string
description = "The location of the 403 error page"
default = "/error/403.html"
}
variable "error_response_404_path" {
type = string
description = "The location of the 404 error page"
default = "/error/404.html"
}
# This was moved to lambda.tf so that localstack could use that file independently
#variable "enable_hostname_rewrites" {
# type = bool
# description = "Whether or not to install a viewer lambda to capture the original hostname as an additional header to enable rewrites based on hostname, not just URI"
# default = false
#}
variable "global_accelerator" {
description = "The FQDN for the global accelerator (i.e., tamu.edu) certificate. Leave blank to not generate a cert"
type = string
default = ""
}
#variable "global_accelerator_source" {
# description = "The source address for the global accelerator (i.e., tamu.edu). Leave blank to not use a GA"
# type = string
# default = ""
#}
#
#variable "global_accelerator_target" {
# description = "The target address for the global accelerator (i.e., www.tamu.edu). Leave blank to not use a GA"
# type = string
# default = ""
#}
variable "html_ttl" {
type = number
description = "The number of seconds to cache .html files (except for index.html)"
default = 1876
}
variable "index_ttl" {
type = number
description = "The number of seconds to cache index.html content"
default = 60
}
variable "javascript_ttl" {
type = number
description = "The number of seconds to cache JavaScript content"
default = 2592000
}
# This was moved to lambda.tf so that localstack could use that file independently
#variable "lambda_runtime" {
# type = number
# description = "The node.js runtime version to use for the lambda@edge function"
# default = 16
#}
variable "log_expiration" {
type = number
description = "The number of days to retain logs"
default = 365
}
variable "max_ttl" {
type = number
description = "Maximum number of seconds to cache content"
default = 259200
}
variable "media_ttl" {
type = number
description = "The number of seconds to cache media content"
default = 86400
}
variable "min_ttl" {
type = number
description = "Minimum number of seconds to cache content"
default = 0
}
variable "minimum_protocol_version" {
type = string
description = "A version string representing the minimum TLS version (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html)"
default = "TLSv1.2_2021"
}
variable "oidc_auth_config_secret_name_base" {
type = string
description = "The name of the secret in secrets manager that contains the OIDC auth configuration"
default = "oidc/config/it-svc-aws-static-sites"
}
variable "oidc_client_id" {
type = string
description = "The OIDC client ID to use for authentication"
}
variable "oidc_client_secret" {
type = string
description = "The OIDC client secret to use for authentication"
sensitive = true
}
variable "oidc_private_key" {
type = string
description = "The OIDC private key to use for authentication"
}
variable "oidc_public_key" {
type = string
description = "The OIDC public key to use for authentication"
}
variable "oidc_session_duration" {
type = number
description = "The number of minutes to allow a user to remain logged in"
default = 30
}
#variable "onepassword_url" {
# type = string
# description = "The URL to the 1password connect API server"
# default = "http://localhost:8080"
#}
variable "onepassword_vault" {
type = string
description = "The name of the 1password vault where S3 keys will be stored"
default = "it-svc-aws-static-sites"
}
variable "origin_ssl_protocols" {
type = list(any)
description = "The TLS versions supported by the origin"
default = ["TLSv1.2"]
}
variable "pdf_ttl" {
type = number
description = "The number of seconds to cache PDF content"
default = 601
}
#variable "rewrite_rules_location" {
# type = string
# description = "The publicly accessible URL of the rewrite rules file"
#}
variable "route53_tld" {
type = string
description = "The top level domain in route53 where subdomains are added"
default = "sites-marcom.cloud.tamu.edu"
}
variable "rules_cache_timeout" {
type = number
description = "The number of seconds to cache rewrite rules"
default = 600
}
# This was moved to lambda.tf so that localstack could use that file independently
#variable "site_settings" {
# #type = map(any)
# description = "A map of site settings that represent user-configurable parameters"
#}
variable "sso_pages_secret_name_base" {
type = string
description = "The name of the secret in secrets manager that contains the list of regex expressions that require SSO authentication"
default = "sso/pages/it-svc-aws-static-sites"
}
variable "sso_required" {
type = bool
description = "Whether or not to enable SSO authentication for the site"
default = false
}
variable "sso_pages" {
type = list(string)
description = "A list of regular expressions that will be used to determine which pages require SSO authentication"
default = []
}
variable "web_acl_name" {
type = string
description = "The name of the web ACL to associate with the CloudFront distribution"
default = "default-cf-web-acl"
}