-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
136 lines (115 loc) · 4.03 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
variable "domain_name" {
type = string
description = "The domain name of the hosted zone"
}
variable "additional_tags" {
type = map(string)
description = "Additional tags for the hosted zone"
default = {}
}
variable "additional_tags_all" {
type = map(string)
description = "Additional tags for all resources in deployed with this module"
default = {}
}
variable "description" {
type = string
description = "The description of the hosted zone"
default = null
}
variable "enable_dnssec" {
type = object({
key_signing_keys = map(object({
kms_key_id = optional(string, null)
status = optional(string, "ACTIVE")
}))
status = optional(string, "SIGNING")
})
description = "Enables Route 53 DNSSEC signing"
default = null
}
variable "enable_query_logging" {
type = object({
cloudwatch_log_group_arn = optional(string, null)
create_resource_policy = optional(bool, false)
log_group_class = optional(string, "STANDARD")
retention = optional(number, 0)
})
description = "Enables Route 53 query log"
default = null
}
variable "private_zone_vpc_associations" {
type = map(list(string))
description = "one or more VPC IDs this private hosted zone is used to resolve DNS queries for"
default = {}
}
variable "records" {
type = list(object({
name = string
type = string
values = optional(list(string), null)
health_check_id = optional(string, null)
ttl = optional(number, 300)
set_identifier = optional(string, null)
alias = optional(object({
target = string
hosted_zone_id = string
evaluate_target_health = optional(bool, true)
}), null)
failover_routing_policy = optional(object({
failover_record_type = string
}), null)
geolocation_routing_policy = optional(object({
location = string
}), null)
geoproximity_routing_policy = optional(object({
bias = optional(number, 0)
local_zone_group = optional(string, null)
region = optional(string, null)
coordinates = optional(object({
latitude = string
longitude = string
}), null)
}), null)
latency_routing_policy = optional(object({
region = string
}), null)
multivalue_answer_routing_policy = optional(object({
enabled = optional(bool, true)
}), null)
weighted_routing_policy = optional(object({
weight = number
}), null)
health_check = optional(object({
enabled = optional(bool, true)
invert_health_check_status = optional(bool, false)
calculated_check = optional(object({
health_checks_to_monitor = list(string)
healthy_threshold = optional(number, null)
}), null)
cloudwatch_alarm_check = optional(object({
alarm_name = string
alarm_region = optional(string, null)
insufficient_data_health_status = optional(string, "LastKnownStatus")
}), null)
cloudwatch_alarms = optional(map(object({
metric_name = string # HealthCheckPercentageHealthy, HealthCheckStatus, ChildHealthCheckHealthyCount
expression = string # statistic comparison_operator threshold
evaluation_periods = optional(number, 1)
period = optional(number, 60)
notification_sns_topic = optional(string, null)
})), {})
endpoint_check = optional(object({
url = string
enable_latency_graphs = optional(bool, false)
failure_threshold = optional(number, 3)
hostname = optional(string, null)
regions = optional(list(string), null)
request_interval = optional(number, 30)
search_string = optional(string, null)
}), null)
}), null)
}))
description = "Manages multiple records"
default = []
}