-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.tf
62 lines (56 loc) · 1.66 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# ===========================
# Call zitadel-deploy module
# ===========================
module "zitadel-deploy" {
source = "../../zitadel-deploy"
# YC Infra and Network attributes
yc_infra = {
cloud_id = var.YC_CLOUD_ID
folder_name = "infra"
zone_id = "ru-central1-b"
dns_zone_name = "mydomain-net"
network = "infra-net"
subnet1 = "infra-subnet-b"
}
# PostgreSQL MDB Cluster attributes
pg_cluster = {
name = "zitadel-pg-cluster"
version = "16"
flavor = "s2.medium"
disk_size = 50 # Gigabytes
db_name = "zitadel-db"
db_user = "dbadmin"
db_pass = "My82Sup@paS98"
db_port = "6432"
}
# Zitadel Docker container attributes
zitadel_cntr = {
name = "zitadel"
cr_name = "mirror.gcr.io"
cr_base_image = "ubuntu:22.04"
zitadel_source = "https://github.com/zitadel/zitadel/releases/download"
zitadel_version = "2.55.0"
zitadel_file = "zitadel-linux-amd64.tar.gz"
yq_source = "https://github.com/mikefarah/yq/releases/download"
yq_version = "4.44.2"
yq_file = "yq_linux_amd64"
}
# Zitadel VM attributes
zitadel_vm = {
name = "zitadel-vm"
vcpu = 2
ram = 8 # Gigabytes
disk_size = 80 # Gigabytes
image_family = "ubuntu-2204-lts"
port = "8443"
jwt_path = "~/.ssh"
admin_user = "admin"
admin_key_file = "~/.ssh/id_ed25519" # SSH Private key path
}
}
output "zitadel_base_url" {
value = module.zitadel-deploy.zitadel_base_url
}
output "jwt_key_full_path" {
value = module.zitadel-deploy.jwt_key_full_path
}