-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.tf
192 lines (166 loc) · 3.64 KB
/
vars.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
####################
# AWS #
####################
variable "region" {
type = string
default = "eu-central-1"
}
###################
# Environment #
###################
variable "var_name" {
type = string
default = "fintech"
}
variable "var_dev_environment" {
type = string
default = "stage"
}
####################
# Networks #
####################
variable "vpc_cidr" {
default = "172.23.0.0/24"
}
variable "newbits" {
default = "4"
description = "Number of additional bits with which to extend the prefix"
}
variable "enabled" {
description = "Set to false to prevent the module from creating any resources"
default = "true"
}
variable "type_public" {
type = string
default = "public"
description = "Type of subnets to create (`private` or `public`)"
}
variable "type_private" {
type = string
default = "private"
description = "Type of subnets to create (`private` or `public`)"
}
variable "availability_zones" {
type = list(string)
default = ["eu-central-1a", "eu-central-1b"]
description = "List of Availability Zones (e.g. `['eu-west-1a', 'eu-west-1b', 'eu-west-1c']`)"
}
####################
# EC2 Instance #
####################
variable "i_tags" {
type = list(string)
default = ["1", "2"]
}
variable "i_type" {
type = string
default = "t3.small"
}
#################
# LOAD BALANCER #
#################
variable "target_name" {
type = list(string)
default = ["os", "octpsh", "ums", "fintech"]
}
variable "target_port" {
type = list(string)
default = ["8081", "8082", "8096", "8097"]
}
####################
# RDS #
####################
variable "var_ums" {
description = "If set to true, install UMS service"
default = "true"
}
variable "var_octopus" {
description = "If set to true, install UMS service"
default = "true"
}
variable "db_type" {
type = string
default = "db.t3.micro"
}
variable "var_username_db" {
type = string
default = "testbrt"
}
variable "var_password_db" {
type = string
default = "test123!"
}
#######
# ALB #
#######
variable "domain_name_app" {
description = "Domain name of main app"
type = string
default = "stage.client_domain.com"
}
variable "domain_name_admin" {
description = "Domain name of admin app"
type = string
default = "stageadmin.client_domain.com"
}
####################
# S3 Buckets #
####################
variable "s3bucket_name" {
type = list(string)
default = ["server-s3", "private-server-s3", "octopus-server-s3", "octopus-server-private-s3"]
description = "List of S3 Buckets to create"
}
###################
# BASTION #
###################
variable "client_name" {
type = string
default = "client_name"
}
variable "dev_environment_bastion" {
type = string
default = "bastion"
}
variable "vpc_cidr_bastion" {
default = "172.19.0.0/24"
}
variable "i_type_bastion" {
type = string
default = "t3.small"
}
variable "bastion_priv_ip" {
default = "172.19.0.10"
}
##################################
# SSH KEYS AND USERS FOR BASTION #
##################################
# Enter required username accounts and insert public keys
variable "ssh_port" {
type = number
default = 2177
}
variable "username_1_pub_ssh" {
type = string
default = ""
}
variable "username_2_pub_ssh" {
type = string
default = ""
}
variable "username_3_pub_ssh" {
type = string
default = ""
}
variable "username_1" {
type = string
default = ""
}
variable "username_2" {
type = string
default = ""
}
variable "username_3" {
type = string
default = ""
}