-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
174 lines (148 loc) · 3.6 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
########
# Label
########
variable "namespace" {
description = "The namespace to deploy into"
type = string
default = ""
}
variable "network_name" {
description = "The network name, ie kusama / mainnet"
type = string
default = ""
}
######
# GCP
######
variable "project" {
description = "The GCP project name"
type = string
}
variable "region" {
description = "The GCP region"
type = string
}
######
# DNS
######
variable "internal_tld" {
description = "The top level domain for the internal DNS"
type = string
default = "internal"
}
variable "root_domain_name" {
description = "The public domain"
type = string
default = ""
}
variable "create_internal_domain" {
description = "Boolean to create an internal split horizon DNS"
type = bool
default = false
}
variable "create_public_regional_subdomain" {
description = "Boolean to create regional subdomain - ie us-east-1.example.com"
type = bool
default = false
}
variable "zone_id" {
description = "The zone ID to configure as the root zoon - ie subdomain.example.com's zone ID"
type = string
default = ""
}
######
# VPC
######
variable "vpc_name" {
description = "The name of the VPC"
type = string
default = "polkadot"
}
variable "azs" {
description = "List of availability zones"
type = list(string)
default = []
}
variable "num_azs" {
description = "The number of AZs to deploy into"
type = number
default = 0
}
variable "cidr" {
description = "The cidr range for network"
type = string
default = "10.0.0.0/16"
}
##################
# Security Groups
##################
variable "corporate_ip" {
description = "The corporate IP you want to restrict ssh traffic to"
type = string
default = ""
}
variable "bastion_enabled" {
description = "Boolean to enable a bastion host. All ssh traffic restricted to bastion"
type = bool
default = false
}
variable "consul_enabled" {
description = "Boolean to allow consul traffic"
type = bool
default = false
}
variable "monitoring_enabled" {
description = "Boolean to for prometheus related traffic"
type = bool
default = false
}
variable "hids_enabled" {
description = "Boolean to enable intrusion detection systems traffic"
type = bool
default = false
}
variable "logging_enabled" {
description = "Boolean to allow logging related traffic"
type = bool
default = false
}
variable "vault_enabled" {
description = "Boolean to allow vault related traffic"
type = bool
default = false
}
variable "sentry_node_sg_name" {
description = "Name for the public node security group"
type = string
default = "sentry-sg"
}
variable "bastion_sg_name" {
description = "Name for the bastion security group"
type = string
default = "bastion-sg"
}
variable "consul_sg_name" {
description = "Name for the consult security group"
type = string
default = "consul-sg"
}
variable "monitoring_sg_name" {
description = "Name for the monitoring security group"
type = string
default = "monitoring-sg"
}
variable "hids_sg_name" {
description = "Name for the HIDS security group"
type = string
default = "hids-sg"
}
variable "logging_sg_name" {
description = "Name for the logging security group"
type = string
default = "logging-sg"
}
variable "vault_sg_name" {
description = "Name for the vault security group"
type = string
default = "vault-sg"
}