infra-waku/hosts_node.tf

33 lines
783 B
HCL

module "node" {
source = "github.com/status-im/infra-tf-multi-provider"
/* node type */
name = "node"
group = "node"
env = "waku"
stage = terraform.workspace
/* 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 */
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"]
/* firewall */
open_tcp_ports = [
"80", /* certbot */
"8000", /* p2p websocket */
"30303", /* libp2p main */
]
open_udp_ports = [
"9000", /* discovery v5 */
]
}