2023-10-10 11:14:21 +00:00
|
|
|
module "node" {
|
2023-10-05 16:14:47 +00:00
|
|
|
source = "github.com/status-im/infra-tf-multi-provider"
|
|
|
|
|
|
|
|
/* node type */
|
2023-10-10 11:14:21 +00:00
|
|
|
name = "node"
|
|
|
|
group = "node"
|
2023-10-05 16:14:47 +00:00
|
|
|
env = "waku"
|
|
|
|
stage = terraform.workspace
|
|
|
|
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 */
|
|
|
|
|
|
|
|
/* data volumes */
|
2023-10-10 11:14:21 +00:00
|
|
|
ac_data_vol_size = local.ws["node_data_vol_size"]
|
|
|
|
do_data_vol_size = local.ws["node_data_vol_size"]
|
|
|
|
gc_data_vol_size = local.ws["node_data_vol_size"]
|
2023-10-05 16:14:47 +00:00
|
|
|
|
|
|
|
/* firewall */
|
|
|
|
open_tcp_ports = [
|
|
|
|
"80", /* certbot */
|
|
|
|
"443", /* p2p websockify */
|
|
|
|
"8000", /* p2p websocket */
|
|
|
|
"30303", /* p2p main */
|
|
|
|
/* only on node-01.gc-us-central1-a.wakuv2.prod */
|
|
|
|
"9000", /* chat2bridge */
|
|
|
|
]
|
|
|
|
open_udp_ports = [
|
|
|
|
"9000", /* discovery v5 */
|
|
|
|
]
|
|
|
|
}
|