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 = [
|
|
|
|
"95.217.87.121",
|
|
|
|
"135.181.0.33",
|
|
|
|
"135.181.60.170",
|
|
|
|
"65.21.193.229",
|
|
|
|
"135.181.60.177",
|
|
|
|
"135.181.56.50",
|
2022-10-19 10:16:34 +00:00
|
|
|
"65.109.80.106",
|
2021-10-04 07:56: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"
|
|
|
|
value = module.nimbus_nodes_mainnet_hetzner.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_hetzner.public_ips[1]
|
|
|
|
type = "A"
|
|
|
|
proxied = false
|
|
|
|
}
|
|
|
|
|
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 */
|
2021-10-20 10:45:32 +00:00
|
|
|
type = "t3a.medium"
|
2020-11-25 14:50:22 +00:00
|
|
|
root_vol_size = 20
|
2022-02-17 19:47:57 +00:00
|
|
|
data_vol_size = 200
|
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
|
|
|
|
}
|