-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
35 lines (28 loc) · 1.14 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
variable "zone" {
type = string
description = "DNS Zone name record will be injected into"
}
variable "create_zone" {
type = bool
description = "Create zone or use existing zone as data"
default = false
}
variable "private_zone" {
type = bool
default = false
description = "If Route53 zone is private set var is true"
}
variable "records" {
type = list(object({
name = string
target_type = optional(string, "") # for cdn/alb record easy creation can be "alb", "cdn"
type = optional(string, "A") # type for standard records creation, can be "A", "CNAME", "TEXT", and etc
value = optional(list(any), []) # value for standard records creation
alb = optional(string, null) # the name of loadbalancer
distribution_id = optional(string, null) # cloudfront distribution id
set_identifier : optional(string, null) # for setting custom identifier in case we have multiple records(geo routing) for same domain
geolocation_routing_policy : optional(any, {}) # use to define custom routing for each geo location
}))
description = "DNS Record map"
default = []
}