-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
41 lines (32 loc) · 1.53 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
### Global Configuration --------------------------------------------------------------------------------------------------------------------------------------------------------------------
variable "project_id" {
default = "<PROYECT_ID>"
}
variable "project_name" {
default = "generic-webapp"
}
variable "region" {
default = "us-central1"
}
### Frontend Application Configuration ------------------------------------------------------------------------------------------------------------------------------------------------------
locals {
frontend_app_name = "${var.project_name}-frontend"
}
### Backend Application Configuration ------------------------------------------------------------------------------------------------------------------------------------------------------
locals {
backend_app_name = "${var.project_name}-backend"
}
### Database config -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
locals {
db_instance_name = "${var.project_name}-instance"
db_name = "${var.project_name}-db"
db_user_name = "${var.project_name}-user"
}
//TODO: (optional) to pass the pass in the command line
variable "db_user_pass" {
default = "VeY.}@/2SV'Q[VfuD85#."
}
### GitHub Repo ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
variable "repo_name" {
default = "silvermx"
}