-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
167 lines (135 loc) · 3.2 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
# GCP Config
variable "project" {
description = "ID do projeto no GCP"
}
variable "region" {
description = "Região do GCP onde o cluster será criado"
}
variable "credentials_file" {
description = "Caminho para o arquivo de credenciais do GCP"
}
variable "dns_zone_name" {
description = "Nome da Cloud DNS zone"
}
variable "svc_account_email" {
description = "E-mail que será referenciado"
}
# Cluster Config
variable "cluster_name" {
description = "Nome do cluster"
}
# Let's Encrypt Config
variable "letsencrypt_email" {
description = "LetsEncrypt Email"
}
# SecretStore
variable "secret_store_server" {
description = "Server link for the secret store backend"
}
variable "secret_store_path" {
description = "Path of the secret denied"
}
variable "secret_store_version" {
description = "Version of the secret"
}
variable "secret_store_token_secret_name" {
description = "Name of the secret with the access token"
}
# Vault Config
variable "vault_address" {
description = "Vault Url Address"
}
variable "vault_terraform_token" {
description = "Vault Token for Terraform"
}
variable "vault_server_domain" {
description = "Vault Server Domain"
}
# Vault Env Secrets Config
variable "client_backend_env_secret" {
description = "Path of the secret denied"
}
variable "client_backend_env_secret_version" {
description = "Version of the secret"
}
variable "client_frontend_env_secret" {
description = "Path of the secret denied"
}
variable "client_frontend_env_secret_version" {
description = "Version of the secret"
}
variable "backend_env_params" {
description = "Env Variables"
type = object({
SALT = number
JWT_SECRET = string
ACCESS_TOKEN_RSA_PRIVATE_KEY = string
ACCESS_TOKEN_RSA_PUBLIC_KEY = string
REFRESH_TOKEN_RSA_PRIVATE_KEY = string
REFRESH_TOKEN_RSA_PUBLIC_KEY = string
})
}
variable "frontend_env_params" {
description = "Env Variables"
type = object({
VITE_BACKEND_URLBASE = string
VITE_BACKEND_UPLOAD_URL = string
VITE_BACKEND_APPLICATION_NAME = string
VITE_BACKEND_APPLICATION_TOKEN = string
})
}
# Client Config
variable "client_name" {
description = "Client Name without spaces"
}
variable "client_namespace" {
description = "Client Namespace"
}
variable "domain" {
type = string
}
# MySQL Config
variable "mysql_server_instance_name" {
description = "Instance Name from the MySQL Server on GCP"
}
variable "db_password" {
description = "Database Password"
}
# App Deploy
variable "frontend_image_config" {
type = object({
image = string
port = number
env_secret_name = string
limits = object({
cpu = string
memory = string
})
requests = object({
cpu = string
memory = string
})
})
}
variable "backend_image_config" {
type = object({
image = string
port = number
env_secret_name = string
limits = object({
cpu = string
memory = string
})
requests = object({
cpu = string
memory = string
})
})
}
# Ingress Config
variable "ingress_controller_ip" {
description = "Ingress Controller IP"
}
variable "cert_manager_email" {
type = string
}