-
Notifications
You must be signed in to change notification settings - Fork 6
/
mainnet.tf
96 lines (81 loc) · 2.51 KB
/
mainnet.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/* MOB: ProLiant DL380p Gen8
* CPU: Intel Xeon E5-2690 v2 @ 3.00GHz
* MEM: 62 GB DDR3
* SSD: 1x400 GB, 2x1.6 TB */
module "nimbus_nodes_mainnet_innova_nec" {
source = "github.com/status-im/infra-tf-dummy-module"
name = "nec"
env = "nimbus"
stage = "mainnet"
group = "nimbus-mainnet-nec"
region = "eu-mda1"
prefix = "ih"
ips = [
"194.33.40.70", /* nec-01.ih-eu-mda1.nimbus.mainnet */
"194.33.40.72", /* nec-02.ih-eu-mda1.nimbus.mainnet */
"194.33.40.78", /* nec-03.ih-eu-mda1.nimbus.mainnet */
]
}
module "nimbus_nodes_mainnet_innova_erigon" {
source = "github.com/status-im/infra-tf-dummy-module"
name = "erigon"
env = "nimbus"
stage = "mainnet"
group = "nimbus-mainnet-erigon"
region = "eu-mda1"
prefix = "ih"
ips = [
"194.33.40.99", /* erigon-01.ih-eu-mda1.nimbus.mainnet */
"194.33.40.100", /* erigon-02.ih-eu-mda1.nimbus.mainnet */
]
}
module "nimbus_nodes_mainnet_innova_geth" {
source = "github.com/status-im/infra-tf-dummy-module"
name = "geth"
env = "nimbus"
stage = "mainnet"
group = "nimbus-mainnet-geth"
region = "eu-mda1"
prefix = "ih"
ips = [
"194.33.40.101", /* geth-01.ih-eu-mda1.nimbus.mainnet */
"185.181.229.82", /* geth-02.ih-eu-mda1.nimbus.mainnet */
]
}
/* Community test REST API endpoints. */
resource "cloudflare_record" "unstable_mainnet_beacon_api" {
zone_id = local.zones["nimbus.team"]
name = "unstable.mainnet.beacon-api"
value = module.nimbus_nodes_mainnet_innova_geth.public_ips[0]
type = "A"
proxied = false
}
resource "cloudflare_record" "testing_mainnet_beacon_api" {
zone_id = local.zones["nimbus.team"]
name = "testing.mainnet.beacon-api"
value = module.nimbus_nodes_mainnet_innova_geth.public_ips[1]
type = "A"
proxied = false
}
/* WARNING: These are bootnodes and losing their IPs and private keys would be bad. */
module "nimbus_nodes_mainnet_stable_small" {
source = "github.com/status-im/infra-tf-amazon-web-services"
name = "bootstrap"
env = "nimbus"
stage = "mainnet"
group = "nimbus-mainnet-small"
/* Scaling */
type = "t3a.large"
root_vol_size = 30
data_vol_size = 1300
data_vol_type = "gp2"
host_count = 2
/* Firewall */
open_udp_ports = local.nimbus_ports
open_tcp_ports = local.nimbus_ports
/* Plumbing */
vpc_id = module.nimbus_network.vpc.id
subnet_id = module.nimbus_network.subnets[0].id
secgroup_id = module.nimbus_network.secgroup.id
keypair_name = aws_key_pair.jakubgs.key_name
}