Skip to content

Commit 6a91410

Browse files
committed
fix: Heredoc formatting.
1 parent 5886bf5 commit 6a91410

1 file changed

Lines changed: 24 additions & 21 deletions

File tree

variables.tf

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ variable "domain" {
55

66
variable "certificate_domain" {
77
type = string
8-
description = <<EOF
8+
description = <<-EOT
99
Domain for the imported certificate, if different from the endpoint. Used in
1010
conjunction with `certificate_imported`.
11-
EOF
11+
EOT
1212
default = null
1313
}
1414

1515
variable "certificate_imported" {
1616
type = bool
17-
description = <<EOF
17+
description = <<-EOT
1818
Look up an imported certificate instead of creating a managed one.
19-
EOF
19+
EOT
2020
default = false
2121
}
2222

@@ -55,33 +55,36 @@ variable "log_group" {
5555

5656
variable "origin_alb_arn" {
5757
type = string
58-
description = <<-EOF
58+
description = <<-EOT
5959
ARN of the Application Load Balancer this deployment will point to. Required
6060
unless `use_custom_origin` is set to `true`.
61-
EOF
61+
EOT
6262
default = null
6363

6464
validation {
6565
condition = var.use_custom_origin || (var.origin_alb_arn != null && var.origin_alb_arn != "")
66-
error_message = "origin_alb_arn must be set to a non-empty value unless use_custom_origin is true."
66+
error_message = <<-EOT
67+
origin_alb_arn must be set to a non-empty value unless use_custom_origin
68+
is true.
69+
EOT
6770
}
6871
}
6972

7073
variable "origin_domain" {
7174
type = string
72-
description = <<EOF
75+
description = <<-EOT
7376
Optional custom origin domain to point to. Defaults to
7477
`origin.subdomain.domain`. Only used if `use_custom_origin` is set to
7578
`true`.
76-
EOF
79+
EOT
7780
default = null
7881
}
7982

8083
variable "passive" {
8184
type = bool
82-
description = <<EOF
85+
description = <<-EOT
8386
Enable passive mode for the WAF, counting all requests rather than blocking.
84-
EOF
87+
EOT
8588
default = false
8689
}
8790

@@ -117,10 +120,10 @@ variable "request_policy" {
117120
"Elemental-MediaTailor-PersonalizedManifests",
118121
"UserAgentRefererHeaders"
119122
], var.request_policy)
120-
error_message = <<EOF
123+
error_message = <<-EOT
121124
Invalid request policy. See
122125
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html
123-
EOF
126+
EOT
124127
}
125128
}
126129

@@ -147,20 +150,20 @@ variable "upload_paths" {
147150

148151
variable "upload_rules_capacity" {
149152
type = number
150-
description = <<EOF
153+
description = <<-EOT
151154
Capacity for the upload rules group. Attempts to determine the capacity if
152155
left empty.
153-
EOF
156+
EOT
154157
default = null
155158
}
156159

157160
variable "use_custom_origin" {
158161
type = bool
159-
description = <<EOF
162+
description = <<-EOT
160163
Use a custom origin configuration instead of an ALB origin. When set to
161164
`true`, a custom origin is used and `origin_alb_arn` is not required; when
162165
set to `false`, an ALB is used and `origin_alb_arn` must be set.
163-
EOF
166+
EOT
164167
default = false
165168
}
166169

@@ -185,18 +188,18 @@ variable "webhooks" {
185188

186189
variable "webhooks_priority" {
187190
type = number
188-
description = <<EOF
191+
description = <<-EOT
189192
Priority for the webhooks rule group. By default, an attempt is made to
190193
place it before other rules that block traffic.
191-
EOF
194+
EOT
192195
default = null
193196
}
194197

195198
variable "webhook_rules_capacity" {
196199
type = number
197-
description = <<EOF
200+
description = <<-EOT
198201
Capacity for the webhook rules group. Attempts to determine the capacity if
199202
left empty.
200-
EOF
203+
EOT
201204
default = null
202205
}

0 commit comments

Comments
 (0)