-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
94 lines (74 loc) · 1.45 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
#mandatory
variable "project_name" {
type = string
}
variable "environment" {
type = string
}
variable "public_subnet_cidrs"{
type = list
validation {
condition = length(var.public_subnet_cidrs) == 2
error_message = "Please provide 2 valid public subet CIDR"
}
}
variable "private_subnet_cidrs"{
type = list
validation {
condition = length(var.private_subnet_cidrs) == 2
error_message = "Please provide 2 valid private subet CIDR"
}
}
variable "database_subnet_cidrs"{
type = list
validation {
condition = length(var.database_subnet_cidrs) == 2
error_message = "Please provide 2 valid database subet CIDR"
}
}
#optional
variable "vpc_cidr" {
default = "10.0.0.0/16"
}
variable "enable_dns_hostnames" {
default = true
}
variable "common_tags" {
default = {}
}
variable "vpc_tags" {
default = {}
}
variable "igw_tags" {
default = {}
}
variable "public_subnet_tags"{
default = {}
}
variable "private_subnet_tags"{
default = {}
}
variable "database_subnet_tags"{
default = {}
}
variable "nat_gateway_tags"{
default ={}
}
variable "db_subnet_group_tags"{
default ={}
}
variable "database_route_table_tags"{
default ={}
}
variable "public_route_table_tags"{
default ={}
}
variable "private_route_table_tags"{
default ={}
}
variable "vpc_peering_tags"{
default ={}
}
variable "is_peering_required"{
default = false
}