-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
152 lines (135 loc) · 3.31 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
#
# variables
#
# name is used for all sorts of things.
variable "name" {
type = string
description = "The name for this vpc will be creating within"
}
variable "tags" {
type = map(string)
description = "Tags to be applied to all resources"
}
#
# VPC related variables
#
variable "cidr" {
type = list(string)
description = "cidr block for the vpc"
}
variable "dns_servers" {
type = list(string)
description = "Name servers for the vpc"
}
#
# public_subnets variables
#
variable "public_subnets" {
description = "A list of public subnets inside the VPC"
type = list(string)
default = []
}
variable "create_public_subnets" {
type = bool
description = "Whether to create public subnets or not"
default = true
}
variable "public_service_endpoints" {
type = list(string)
description = "Endpoint services to enable for the public subnet"
default = [
"Microsoft.AzureActiveDirectory",
"Microsoft.AzureCosmosDB",
"Microsoft.ContainerRegistry",
"Microsoft.EventHub",
"Microsoft.KeyVault",
"Microsoft.ServiceBus",
"Microsoft.Sql",
"Microsoft.Storage.Global",
"Microsoft.Web"
]
}
#
# private_subnets variables
#
variable "private_subnets" {
description = "A list of private subnets inside the VPC"
type = list(string)
default = []
}
variable "create_private_subnets" {
type = bool
description = "Whether to create private subnets or not"
default = true
}
variable "private_service_endpoints" {
type = list(string)
description = "Endpoint services to enable for the private subnet"
default = [
"Microsoft.AzureActiveDirectory",
"Microsoft.AzureCosmosDB",
"Microsoft.ContainerRegistry",
"Microsoft.EventHub",
"Microsoft.KeyVault",
"Microsoft.ServiceBus",
"Microsoft.Sql",
"Microsoft.Storage.Global",
"Microsoft.Web"
]
}
#
# Database subnets
#
variable "database_subnets" {
description = "A list of database subnets inside the VPC"
type = list(string)
default = []
}
variable "create_database_subnets" {
type = bool
description = "Whether to create database subnets or not"
default = true
}
variable "database_service_endpoints" {
type = list(string)
description = "Endpoint services to enable for the database subnet"
default = [
"Microsoft.AzureActiveDirectory",
"Microsoft.AzureCosmosDB",
"Microsoft.ContainerRegistry",
"Microsoft.EventHub",
"Microsoft.KeyVault",
"Microsoft.ServiceBus",
"Microsoft.Sql",
"Microsoft.Storage.Global",
"Microsoft.Web"
]
}
#
# kubernetes subnets
#
variable "kubernetes_subnets" {
description = "A list of kubernetes subnets inside the VPC"
type = list(string)
default = []
}
variable "create_kubernetes_subnets" {
type = bool
description = "Whether to create kubernetes subnets or not"
default = true
}
variable "kubernetes_service_endpoints" {
type = list(string)
description = "Endpoint services to enable for the kubernetes subnet"
default = [
"Microsoft.AzureActiveDirectory",
"Microsoft.AzureCosmosDB",
"Microsoft.ContainerRegistry",
"Microsoft.EventHub",
"Microsoft.KeyVault",
"Microsoft.ServiceBus",
"Microsoft.Sql",
"Microsoft.Storage.Global",
"Microsoft.Web"
]
}