-
Notifications
You must be signed in to change notification settings - Fork 19
/
main.tf
48 lines (40 loc) · 1.1 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
variable "name_prefix" {}
variable "tf_state_bucket_name" {}
variable "buckets_location" {
default = "US-EAST1"
}
variable "backups_bucket_location" {
default = "US-CENTRAL1"
}
variable "gcp_project" {}
variable "inception_sa" {}
variable "users" {
type = list(object({
id = string
bastion = bool
inception = bool
platform = bool
logs = bool
}))
}
module "inception" {
source = "git::https://github.com/GaloyMoney/galoy-infra.git//modules/inception/gcp?ref=8837b61"
# source = "../../../modules/inception/gcp"
name_prefix = var.name_prefix
gcp_project = var.gcp_project
inception_sa = var.inception_sa
tf_state_bucket_name = var.tf_state_bucket_name
buckets_location = var.buckets_location
backups_bucket_location = var.backups_bucket_location
backups_bucket_name = "${var.name_prefix}-backups"
users = var.users
}
output "bastion_name" {
value = module.inception.bastion_name
}
output "bastion_zone" {
value = module.inception.bastion_zone
}
output "cluster_sa" {
value = module.inception.cluster_sa
}