2021-10-04 07:56:09 +00:00
|
|
|
/* Hetzner AX41-NVMe
|
|
|
|
* AMD Ryzen 5 3600 Hexa-Core
|
|
|
|
* 64 GB DDR4 RAM
|
|
|
|
* 2 x 512 GB NVMe SSD */
|
|
|
|
module "nimbus_nodes_mainnet_hetzner" {
|
2022-05-05 11:02:48 +00:00
|
|
|
source = "github.com/status-im/infra-tf-dummy-module"
|
2021-10-04 07:56:09 +00:00
|
|
|
|
|
|
|
name = "metal"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "mainnet"
|
|
|
|
group = "nimbus-mainnet-metal"
|
2022-02-25 13:19:08 +00:00
|
|
|
region = "eu-hel1"
|
|
|
|
prefix = "he"
|
2021-10-04 07:56:09 +00:00
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
ips = [
|
2023-04-28 09:47:00 +00:00
|
|
|
"65.109.80.106", /* metal-01.he-eu-hel1.nimbus.mainnet */
|
2021-10-04 07:56:09 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2023-04-17 12:32:09 +00:00
|
|
|
module "nimbus_nodes_mainnet_innova" {
|
|
|
|
source = "github.com/status-im/infra-tf-dummy-module"
|
|
|
|
|
|
|
|
name = "linux"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "mainnet"
|
|
|
|
group = "nimbus-mainnet-metal"
|
|
|
|
region = "eu-mda1"
|
|
|
|
prefix = "ih"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
ips = [
|
2023-04-18 16:13:00 +00:00
|
|
|
"194.33.40.70", /* linux-01.ih-eu-mda1.nimbus.mainnet */
|
|
|
|
"194.33.40.72", /* linux-02.ih-eu-mda1.nimbus.mainnet */
|
|
|
|
"194.33.40.78", /* linux-03.ih-eu-mda1.nimbus.mainnet */
|
|
|
|
"194.33.40.99", /* linux-04.ih-eu-mda1.nimbus.mainnet */
|
|
|
|
"194.33.40.100", /* linux-05.ih-eu-mda1.nimbus.mainnet */
|
2023-04-17 12:32:09 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-10-04 11:42:33 +00:00
|
|
|
/* Community test REST API endpoints. */
|
|
|
|
resource "cloudflare_record" "unstable_mainnet_beacon_api" {
|
|
|
|
zone_id = local.zones["nimbus.team"]
|
|
|
|
name = "unstable.mainnet.beacon-api"
|
2023-04-28 09:47:00 +00:00
|
|
|
value = module.nimbus_nodes_mainnet_innova.public_ips[0]
|
2021-10-04 11:42:33 +00:00
|
|
|
type = "A"
|
|
|
|
proxied = false
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudflare_record" "testing_mainnet_beacon_api" {
|
|
|
|
zone_id = local.zones["nimbus.team"]
|
|
|
|
name = "testing.mainnet.beacon-api"
|
2023-04-28 09:47:00 +00:00
|
|
|
value = module.nimbus_nodes_mainnet_innova.public_ips[1]
|
2021-10-04 11:42:33 +00:00
|
|
|
type = "A"
|
|
|
|
proxied = false
|
|
|
|
}
|
2022-11-17 10:24:00 +00:00
|
|
|
|
2022-11-08 16:51:08 +00:00
|
|
|
/* ERA Files hosting */
|
|
|
|
resource "cloudflare_record" "era_mainnet" {
|
|
|
|
zone_id = local.zones["nimbus.team"]
|
|
|
|
name = "mainnet.era"
|
2023-04-28 09:47:00 +00:00
|
|
|
value = module.nimbus_nodes_mainnet_innova.public_ips[2]
|
2022-11-08 16:51:08 +00:00
|
|
|
type = "A"
|
|
|
|
proxied = true
|
|
|
|
}
|
2021-10-04 11:42:33 +00:00
|
|
|
|
2021-01-29 12:26:55 +00:00
|
|
|
/* WARNING: These are bootnodes and losing their IPs and private keys would be bad. */
|
2021-01-18 18:19:09 +00:00
|
|
|
module "nimbus_nodes_mainnet_stable_small" {
|
2020-11-25 14:50:22 +00:00
|
|
|
source = "github.com/status-im/infra-tf-amazon-web-services"
|
|
|
|
|
2021-01-18 18:19:09 +00:00
|
|
|
name = "stable-small"
|
2020-11-25 14:50:22 +00:00
|
|
|
env = "nimbus"
|
|
|
|
stage = "mainnet"
|
|
|
|
group = "nimbus-mainnet-small"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
/* Scaling */
|
2023-02-09 12:37:16 +00:00
|
|
|
type = "t3a.large"
|
2020-11-25 14:50:22 +00:00
|
|
|
root_vol_size = 20
|
2023-03-02 13:12:11 +00:00
|
|
|
data_vol_size = 300
|
2020-11-25 14:50:22 +00:00
|
|
|
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
|
|
|
|
}
|