-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathvariables.tf
125 lines (105 loc) · 3.29 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
##-----------------------------------------------------------------------------
## Locals declration to determine count of public subnet, private subnet, and nat gateway.
##-----------------------------------------------------------------------------
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-aws-route53"
description = "Terraform current module repo"
validation {
# regex(...) fails if it cannot find a match
condition = can(regex("^https://", var.repository))
error_message = "The module-repo value must be a valid Git repo link."
}
}
variable "label_order" {
type = list(any)
default = []
description = "Label order, e.g. `name`,`application`."
}
variable "managedby" {
type = string
default = "[email protected]"
description = "ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'."
}
##-----------------------------------------------------------------------------
## Terraform Route53 module variables.
##-----------------------------------------------------------------------------
variable "enabled" {
type = bool
default = true
description = "Flag to control the Route53 and related resources creation."
}
variable "record_enabled" {
type = bool
default = false
description = "Whether to create Route53 record set."
}
variable "private_enabled" {
type = bool
default = false
description = "Whether to create private Route53 zone."
}
variable "public_enabled" {
type = bool
default = false
description = "Whether to create public Route53 zone."
}
variable "records" {
description = "List of objects of DNS records"
type = any
default = []
}
variable "records_jsonencoded" {
description = "List of map of DNS records (stored as jsonencoded string, for terragrunt)"
type = string
default = null
}
variable "domain_name" {
type = string
description = "This is the name of the resource."
}
variable "comment" {
type = string
default = ""
description = "A comment for the hosted zone. Defaults to 'Managed by Terraform'."
}
variable "force_destroy" {
type = bool
default = true
description = "Whether to destroy all records (possibly managed outside of Terraform) in the zone when destroying the zone."
}
variable "delegation_set_id" {
type = string
default = ""
description = "The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with vpc as delegation sets can only be used for public zones."
}
variable "vpc_id" {
type = string
default = ""
description = "VPC ID."
}
variable "vpc_association_enabled" {
type = bool
default = false
description = "Whether to create Route53 vpc association."
}
variable "secondary_vpc_id" {
type = string
default = ""
description = "The VPC to associate with the private hosted zone."
}
variable "zone_id" {
type = string
default = ""
description = "Route53 Zone ID."
}