You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: variables.tf
+48-13Lines changed: 48 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,18 @@ variable "domain" {
5
5
6
6
variable"certificate_domain" {
7
7
type=string
8
-
description="Domain for the imported certificate, if different from the endpoint. Used in conjunction with certificate_imported."
9
-
default=""
8
+
description=<<EOF
9
+
Domain for the imported certificate, if different from the endpoint. Used in
10
+
conjunction with `certificate_imported`.
11
+
EOF
12
+
default=null
10
13
}
11
14
12
15
variable"certificate_imported" {
13
16
type=bool
14
-
description="Look up an imported certificate instead of creating a managed one."
17
+
description=<<EOF
18
+
Look up an imported certificate instead of creating a managed one.
19
+
EOF
15
20
default=false
16
21
}
17
22
@@ -29,7 +34,7 @@ variable "environment" {
29
34
30
35
variable"ip_set_rules" {
31
36
type=map(object({
32
-
name =optional(string, "")
37
+
name =optional(string, null)
33
38
action =optional(string, "allow")
34
39
priority =optional(number, null)
35
40
arn =string
@@ -50,19 +55,28 @@ variable "log_group" {
50
55
51
56
variable"origin_alb_arn" {
52
57
type=string
53
-
description="ARN of the Application Load Balancer this deployment will point to. If set, origin_domain is ignored."
58
+
description=<<EOF
59
+
ARN of the Application Load Balancer this deployment will point to. Required
60
+
unless `use_custom_origin` is set to `true`.
61
+
EOF
54
62
default=null
55
63
}
56
64
57
65
variable"origin_domain" {
58
66
type=string
59
-
description="Origin domain this deployment will point to. Defaults to origin.subdomain.domain."
60
-
default=""
67
+
description=<<EOF
68
+
Optional custom origin domain to point to. Defaults to
69
+
`origin.subdomain.domain`. Only used if `use_custom_origin` is set to
70
+
`true`.
71
+
EOF
72
+
default=null
61
73
}
62
74
63
75
variable"passive" {
64
76
type=bool
65
-
description="Enable passive mode for the WAF, counting all requests rather than blocking."
77
+
description=<<EOF
78
+
Enable passive mode for the WAF, counting all requests rather than blocking.
79
+
EOF
66
80
default=false
67
81
}
68
82
@@ -73,7 +87,7 @@ variable "project" {
73
87
74
88
variable"rate_limit_rules" {
75
89
type=map(object({
76
-
name =optional(string, "")
90
+
name =optional(string, null)
77
91
action =optional(string, "block")
78
92
limit =optional(number, 10)
79
93
window =optional(number, 60)
@@ -98,7 +112,10 @@ variable "request_policy" {
98
112
"Elemental-MediaTailor-PersonalizedManifests",
99
113
"UserAgentRefererHeaders"
100
114
], var.request_policy)
101
-
error_message="Invalid request policy. See https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html"
0 commit comments