-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
226 lines (181 loc) · 4.8 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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
/*
* VPC VARS DEFINITION
*
* Author : Joffrey DUPIRE <joffrey.dupire@ynov.com>
* Purpose : A fulfully modelable VPC
*
*/
#
# MAIN VARS
#
variable "region" {
description = "AWS Region to use"
}
variable "module_version" {
description = "Current version of the module"
default = "v0.0.1"
}
variable "plateform_name" {
description = "Name of the plateform"
}
variable "plateform_environment" {
description = "Plateform environment (test/prod/...)"
}
variable "cidr_block" {
description = "Enter the cidr block for your VPC"
}
variable "instance_tenancy" {
description = "Default instance tenancy for EC2 launched inside the VPC"
default = "default"
}
variable "enable_classiclink" {
default = false
}
variable "enable_classiclink_dns_support" {
default = false
}
variable "enable_dns_hostnames" {
default = false
}
variable "enable_dns_support" {
default = false
}
variable "assign_generated_ipv6_cidr_block" {
default = false
}
#
# CONDITIONALS VARS
#
variable "have_public_subnets" {
description = "Should deploy public subnet, deploy NAT Gateways too (true/false)"
default = false
}
variable "have_private_subnets" {
description = "Should deploy private subnet (true/false)"
default = false
}
variable "have_nat_gateways" {
description = "Should allow private subnet to access internet through public subnets (true/false)"
default = false
}
variable "have_nacl" {
description = "Should deploy nacl (true/false)"
default = false
}
variable "is_multi_az" {
description = "Use all az of the current region (true/false)"
default = false
}
## LOGGING VARS
variable "have_flowlogs" {
description = "Enable FlowLogs (true/false)"
default = false
}
variable "have_kinesis_stream" {
description = "Enable Kinesis Data Stream for Flowlogs (true/false)"
default = false
}
variable "s3_expiration_enabled" {
description = "Enable logs expiration in logging bucket"
default = false
}
variable "logs_expiration_standard" {
description = "Number of days before change S3 Storage Class to Standard IA"
default = 15
}
variable "logs_expiration_onezone" {
description = "Number of days before change S3 Storage Class to One Zone IA"
default = 30
}
variable "logs_expiration_glacier" {
description = "Number of days before change S3 Storage Class to Glacier"
default = 60
}
variable "logs_complete_expiration_days" {
description = "Number of days object finally expire in S3"
default = 90
}
variable "cwl_retention_in_days" {
description = "Retention in days for FlowLogs"
default = 90
}
variable "have_logging_bucket" {
default = false
description = "Force deployment of S3 logging bucket even if kinesis isn't deployed"
}
## VPN CONNECTIONS VARS
variable "have_vpn_connections" {
description = "Should deploy vpn connections (true/false)"
default = false
}
variable "vpn_client_name" {
type = list(string)
default = []
description = "All the name for each vpn client"
}
variable "vpn_client_endpoint" {
type = list(string)
default = []
description = "All the public IP for each vpn client"
}
variable "static_routes_only" {
description = "use static route"
type = list(string)
default = []
}
variable "amazon_side_asn" {
default = 65000
}
variable "bgp_asn" {
type = list(string)
default = ["64999"]
}
## VPC PEERING VARS
variable "have_vpc_peering" {
description = "Should deploy a VPC peering (true/false)"
default = false
}
variable "peer_owner_ids" {
type = list(string)
description = "List of AWS Account ID of the peer"
default = []
}
variable "peer_vpc_ids" {
type = list(string)
description = "List of all peer vpc id"
default = []
}
variable "peer_region" {
type = list(string)
description = "List of region for each vpc peer"
default = []
}
variable "accepter_allow_remote_vpc_dns_resolution" {
description = "Allow vpc accepter dns resolution"
default = false
}
variable "accepter_allow_classic_link_to_remote_vpc" {
description = "Allow vpc accepter classic link on remote"
default = false
}
variable "accepter_allow_vpc_to_remote_classic_link" {
description = "Allow vpc accepter classic link from current vpc"
default = false
}
variable "requester_allow_remote_vpc_dns_resolution" {
description = "Allow vpc requester dns resolution"
default = false
}
variable "requester_allow_classic_link_to_remote_vpc" {
description = "Allow vpc requester classic link on remote"
default = false
}
variable "requester_allow_vpc_to_remote_classic_link" {
description = "Allow vpc requester classic link from current vpc"
default = false
}
variable "peer_friendly_name" {
type = list(string)
description = "List of peer name"
default = []
}