2022-02-15 14:57:58 +00:00
|
|
|
module "hosts" {
|
|
|
|
source = "github.com/status-im/infra-tf-multi-provider"
|
|
|
|
|
|
|
|
/* node type */
|
2022-03-10 13:26:07 +00:00
|
|
|
group = "status"
|
2022-02-15 14:57:58 +00:00
|
|
|
env = local.ws.env
|
|
|
|
stage = local.ws.stage
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
/* scaling */
|
|
|
|
host_count = local.ws["hosts_count"]
|
|
|
|
|
|
|
|
/* instance sizes */
|
|
|
|
do_type = local.ws["do_type"] /* DigitalOcean */
|
|
|
|
ac_type = local.ws["ac_type"] /* Alibaba Cloud */
|
|
|
|
gc_type = local.ws["gc_type"] /* Google Cloud */
|
|
|
|
|
2022-09-21 08:59:58 +00:00
|
|
|
/* data volumes */
|
|
|
|
ac_data_vol_size = var.data_volume_size
|
|
|
|
do_data_vol_size = var.data_volume_size
|
|
|
|
gc_data_vol_size = var.data_volume_size
|
|
|
|
|
|
|
|
|
2022-02-15 14:57:58 +00:00
|
|
|
/* firewall */
|
2022-08-22 14:11:52 +00:00
|
|
|
open_tcp_ports = [
|
|
|
|
"30303", /* p2p main */
|
|
|
|
"443", /* websocket */
|
|
|
|
"80", /* certbot */
|
|
|
|
]
|
|
|
|
open_udp_ports = [
|
|
|
|
"9000", /* discovery v5 */
|
|
|
|
]
|
2022-02-15 14:57:58 +00:00
|
|
|
}
|