2023-08-16 22:47:25 +02:00
|
|
|
module "private_server_group" {
|
2023-08-17 22:05:53 +02:00
|
|
|
source = "./modules/private-server-group"
|
|
|
|
location = var.location
|
|
|
|
network_zone = var.network_zone
|
|
|
|
server_count = var.server_count
|
|
|
|
server_subnetwork_ip_range = var.subnetwork_ip_range
|
2023-09-12 21:20:24 +02:00
|
|
|
ssh_keys = var.ssh_keys
|
2023-08-17 22:05:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module "loadbalancer" {
|
|
|
|
source = "./modules/loadbalancer"
|
|
|
|
location = var.location
|
|
|
|
subnet_id = module.private_server_group.subnetwork_id
|
2023-09-12 21:20:24 +02:00
|
|
|
network_id = module.private_server_group.network_id
|
2023-08-17 22:05:53 +02:00
|
|
|
lb_internal_ip = var.lb_internal_ip
|
|
|
|
lb_external_ip = var.lb_external_ip
|
2023-09-12 21:20:24 +02:00
|
|
|
lb_service_id = var.lb_service_id
|
|
|
|
ssh_key_ids = module.private_server_group.ssh_key_ids
|
2023-08-16 22:47:25 +02:00
|
|
|
}
|