forked from status-im/infra-nim-waku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hosts.tf
30 lines (26 loc) · 757 Bytes
/
hosts.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
module "hosts" {
source = "github.com/status-im/infra-tf-multi-provider"
/* node type */
env = local.ws.env
stage = local.ws.stage
group = "${local.ws.env}-${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 */
/* 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 */
]
}