-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
161 lines (144 loc) · 2.67 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
variable "app_db_pw_index" {
type = number
description = "increment this value when the database password should be changed"
default = 0
}
variable "domain" {
type = string
default = "3tier.clarkwinters.com"
}
variable "app_name" {
type = string
default = "3tier"
}
variable "vpc_cidr_block" {
type = string
default = "10.0.0.0/16"
}
variable "web_subnets" {
type = set(object({
cidr_block = string
az = string
}))
default = [{
cidr_block = "10.0.0.0/26"
az = "us-east-2a"
}, {
cidr_block = "10.0.0.64/26"
az = "us-east-2b"
}, {
cidr_block = "10.0.0.128/26"
az = "us-east-2c"
}]
}
variable "api_subnets" {
type = set(object({
cidr_block = string
az = string
}))
default = [{
cidr_block = "10.0.1.0/26"
az = "us-east-2a"
}, {
cidr_block = "10.0.1.64/26"
az = "us-east-2b"
}, {
cidr_block = "10.0.1.128/26"
az = "us-east-2c"
}]
}
variable "db_subnets" {
type = set(object({
cidr_block = string
az = string
}))
default = [{
cidr_block = "10.0.2.0/26"
az = "us-east-2a"
}, {
cidr_block = "10.0.2.64/26"
az = "us-east-2b"
}, {
cidr_block = "10.0.2.128/26"
az = "us-east-2c"
}]
}
variable "public_subnets" {
type = set(object({
cidr_block = string
az = string
}))
default = [{
cidr_block = "10.0.3.0/26"
az = "us-east-2a"
}, {
cidr_block = "10.0.3.64/26"
az = "us-east-2b"
}, {
cidr_block = "10.0.3.128/26"
az = "us-east-2c"
}]
}
variable "web_tags" {
type = object({
Name = string
component = string
})
default = {
Name = "3tier-web"
component = "web"
}
}
variable "api_tags" {
type = object({
Name = string
component = string
})
default = {
Name = "3tier-api"
component = "api"
}
}
variable "db_tags" {
type = object({
Name = string
component = string
})
default = {
Name = "pg-3tier-db"
component = "db"
}
}
variable "public_tags" {
type = object({
Name = string
})
default = {
Name = "3tier-public"
}
}
variable "web_port" {
type = number
default = 3000
}
variable "api_port" {
type = number
default = 8080
}
variable "db_port" {
type = number
default = 5432
}
variable "public_port" {
type = number
default = 443
}
variable "db_name" {
description = "name of the database on the RDS cluster"
type = string
default = "pg3tier"
}
variable "api_service_name" {
type = string
default = "api"
}