-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
188 lines (147 loc) · 4.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
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
variable "db_subnet_group_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to the DB subnet group created by this module. Tags in this map will override tags in `var.default_tags`.
EOS
}
variable "cidr_block" {
type = string
description = <<EOS
VPC CIDR.
EOS
}
variable "create_db_subnet_group" {
type = bool
default = false
description = <<EOS
Whether to create a DB subnet group.
EOS
}
variable "create_elasticache_subnet_group" {
type = bool
default = false
description = <<EOS
Whether to create an ElastiCache subnet group.
EOS
}
variable "default_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to all AWS resources created by this module.
EOS
}
variable "gateway_vpc_endpoint_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to the VPC Endpoints with type `Gateway` created by this module. Tags in this map will override tags in `var.default_tags`.
EOS
}
variable "interface_vpc_endpoint_security_group_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to the security groups of the VPC Endpoints with type `Interface` created by this module. Tags in this map will override tags in `var.default_tags`.
EOS
}
variable "interface_vpc_endpoint_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to the VPC Endpoints with type `Interface` created by this module. Tags in this map will override tags in `var.default_tags`.
EOS
}
variable "internet_gateway_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to the Internet Gateway created by this module. Tags in this map will override tags in `var.default_tags`.
EOS
}
variable "name" {
type = string
description = <<EOS
Name to be used in all `Name` tags shown in the AWS Console.
EOS
}
variable "nat_gateway_eip_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to the EIPs of the NAT Gateways created by this module. Tags in this map will override tags in `var.default_tags`.
EOS
}
variable "nat_gateway_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to the NAT Gateways created by this module. Tags in this map will override tags in `var.default_tags`.
EOS
}
variable "private_route_table_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to the private route tables created by this module. Tags in this map will override tags in `var.default_tags`.
EOS
}
variable "private_subnet_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to the private subnets created by this module. Tags in this map will override tags in `var.default_tags`.
EOS
}
variable "public_route_table_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to the public route tables created by this module. Tags in this map will override tags in `var.default_tags`.
EOS
}
variable "public_subnet_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to the public subnets created by this module. Tags in this map will override tags in `var.default_tags`.
EOS
}
variable "size" {
type = number
description = <<EOS
Number of availability zones to cover.
This will be also the number public-private subnet pairs to create.
If subnet groups for RDS and/or ElastiCache shall be created, the number must be at least 2.
EOS
}
variable "subnet_bits" {
type = number
default = 4
description = <<EOS
Number of bits to add to the VPC CIDR to get the size of the subnet CIDR.
EOS
}
variable "vpc_endpoints" {
type = object({
gateway = list(string)
interface = list(string)
})
default = {
gateway = []
interface = []
}
description = <<EOS
Service name identifiers for the VPC endpoints.
Every VPC endpoint belongs to a service name like `com.amazonaws.REGION.IDENTIFIER`.
The lists of this variable (grouped by VPC endpoint type) are expecting just the `IDENTIFIER` of the service name.
EOS
}
variable "vpc_tags" {
type = map(string)
default = {}
description = <<EOS
Map of tags assigned to the VPC created by this module. Tags in this map will override tags in `var.default_tags`.
EOS
}