-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
72 lines (64 loc) · 2.35 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
# Multiple Validation: https://learn.hashicorp.com/tutorials/terraform/variables#validate-variables
variable "attributes" {
type = object({
resource_group_name = string
// Azure CDN Frontdoor
profile_id = string
profile_name = string
endpoint_name = string
origin_group = object({
session_affinity_enabled = optional(bool, false),
load_balancing = optional(object({
sample_size = optional(number, 4),
successful_samples_required = optional(number, 3)
}), {
sample_size = 4,
successful_samples_required = 3
}),
})
health_probe = object({
path = optional(string, "/"),
request_type = optional(string, "HEAD"),
protocol = optional(string, "Https"),
interval_in_seconds = optional(number, 100)
})
# Route Settings
route = optional(object({
enabled = optional(bool, true)
supported_protocols = optional(list(string), ["Http", "Https"])
patterns_to_match = optional(list(string), ["/*"])
forwarding_protocol = optional(string, "HttpsOnly")
link_to_default_domain = optional(bool, true)
https_redirect_enabled = optional(bool, true)
}), {
supported_protocols = ["Http", "Https"]
patterns_to_match = ["/*"]
forwarding_protocol = "HttpsOnly"
link_to_default_domain = true
https_redirect_enabled = true
})
custom_domain = optional(object({
enable = optional(bool, true)
host_name = string
tls = optional(object({
certificate_type = optional(string, "ManagedCertificate")
minimum_tls_version = optional(string, "TLS12")
}), {
certificate_type = "ManagedCertificate"
minimum_tls_version = "TLS12"
})
}))
origin_config = map(
object({
enabled = optional(bool)
host_name = string
origin_host_header = optional(string)
certificate_name_check_enabled = optional(bool)
http_port = optional(number)
https_port = optional(number)
priority = optional(number)
weight = optional(number)
})
)
})
}