-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
47 lines (41 loc) · 1.54 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
##################################################
# VARIABLES #
##################################################
variable "private_dns_record_type" {
type = string
description = "value of the private dns record type, only allowed options are: 'A', 'AAAA', 'CNAME', 'MX', 'PTR', 'SRV', 'TXT'"
default = "A"
validation {
condition = can(regex("^(A|AAAA|CNAME|MX|PTR|SRV|TXT)$", var.private_dns_record_type))
error_message = "Invalid value for private_dns_record_type, only allowed options are: 'A', 'AAAA', 'CNAME', 'MX', 'PTR', 'SRV', 'TXT'"
}
}
variable "private_dns_record_name" {
type = string
description = "value of the private dns record name"
default = "testrecord"
}
variable "resource_group_name" {
type = string
description = "value of the resource group name"
default = "rg-where-zone-is-located"
}
variable "private_dns_record_ttl" {
type = number
description = "value of the private dns record ttl"
default = 300
}
variable "private_dns_zone_name" {
type = string
description = "value of the private dns zone name"
default = "myorg.zone.local"
}
variable "private_dns_record_value" {
type = any
description = "value of the private dns record/s block. Usage of any is due to the fact that each record type has a different structure which can be string:[CNAME], set:[A, AAAA, PTR] or object:[MX, SRV, TXT]"
}
variable "tags" {
type = map(string)
description = "value of the tags"
default = {}
}