-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
74 lines (71 loc) · 1.8 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
variable "environment" {
description = "the subdomain environment you want to deploy to. If domain is naked, do not specify"
default = ""
}
variable "domain" {
description = "the domain you want to deploy to"
}
variable "zoneid" {
description = "route53 zone id"
default = ""
}
variable "certificate_id" {
description = "Certificate ID"
}
variable "basic_auth" {
description = "Enable basic auth"
default = false
}
variable "index_redirect" {
description = "Enable index redirect https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/example-function-add-index.html"
default = false
}
variable "username" {
description = "the username to utilize for the domain"
default = ""
}
variable "password" {
description = "the password to utilize for the domain"
default = ""
}
variable "enable_prerender" {
description = "Enable SEO Prerender bucket routing"
default = false
}
variable "prerender_bucket" {
description = "Prerender Bucket name"
default = ""
}
variable "allowed_origins" {
description = "Allowed Headers"
default = ["*"]
}
variable "allowed_methods" {
description = "Allowed Methods"
default = ["GET", "HEAD"]
}
variable "allowed_headers" {
description = "Allowed Methods"
default = ["*"]
}
variable "custom_error_responses" {
description = "Error Responses within cloudfront"
type = list(object({
error_code = number,
response_code = number,
response_page_path = string
}))
default = [{
error_code = 404
response_code = 200
response_page_path = "/index.html"
}, {
error_code = 403
response_code = 200
response_page_path = "/index.html"
}]
}
variable "region_denylist" {
description = "region location denylist"
default = []
}