forked from GaloyMoney/galoy-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
32 lines (29 loc) · 917 Bytes
/
main.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
variable "name_prefix" {}
variable "gcp_project" {}
variable "node_service_account" {}
variable "node_default_machine_type" {
default = "e2-medium"
}
variable "letsencrypt_issuer_email" {
default = "[email protected]"
}
variable "destroyable_postgres" {
default = false
}
module "platform" {
source = "git::https://github.com/GaloyMoney/galoy-infra.git//modules/platform/gcp?ref=517cc2a"
# source = "../../../modules/platform/gcp"
name_prefix = var.name_prefix
gcp_project = var.gcp_project
node_service_account = var.node_service_account
node_default_machine_type = var.node_default_machine_type
destroyable_postgres = var.destroyable_postgres
deploy_shared_pg = false
deploy_auth_pg = true
}
output "cluster_endpoint" {
value = module.platform.master_endpoint
}
output "cluster_ca_cert" {
value = module.platform.cluster_ca_cert
}