2021-03-18 04:59:45 +00:00
|
|
|
locals {
|
|
|
|
/* Volumes */
|
|
|
|
prater_root_vol_size = 20
|
2023-01-12 11:31:57 +00:00
|
|
|
prater_data_vol_size = 300
|
2022-02-17 20:19:04 +00:00
|
|
|
prater_data_vol_type = "gp2"
|
2021-03-18 04:59:45 +00:00
|
|
|
/* Instances */
|
|
|
|
prater_large_instance_type = "z1d.large"
|
|
|
|
}
|
|
|
|
|
|
|
|
module "nimbus_nodes_prater_stable_large" {
|
|
|
|
source = "github.com/status-im/infra-tf-amazon-web-services"
|
|
|
|
|
|
|
|
name = "stable-large"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-stable"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
/* Scaling */
|
2021-10-20 10:45:32 +00:00
|
|
|
type = local.prater_large_instance_type
|
2021-03-18 04:59:45 +00:00
|
|
|
root_vol_size = local.prater_root_vol_size
|
2022-02-17 20:19:04 +00:00
|
|
|
data_vol_size = local.prater_data_vol_size
|
|
|
|
data_vol_type = local.prater_data_vol_type
|
2021-10-22 16:23:22 +00:00
|
|
|
host_count = 1
|
2021-03-18 04:59:45 +00:00
|
|
|
|
|
|
|
/* 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
|
2022-05-25 09:57:25 +00:00
|
|
|
keypair_name = aws_key_pair.jakubgs.key_name
|
2021-03-18 04:59:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module "nimbus_nodes_prater_testing_large" {
|
|
|
|
source = "github.com/status-im/infra-tf-amazon-web-services"
|
|
|
|
|
|
|
|
name = "testing-large"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-testing"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
/* Scaling */
|
2021-10-20 10:45:32 +00:00
|
|
|
type = local.prater_large_instance_type
|
2021-03-18 04:59:45 +00:00
|
|
|
root_vol_size = local.prater_root_vol_size
|
2022-02-17 20:19:04 +00:00
|
|
|
data_vol_size = local.prater_data_vol_size
|
|
|
|
data_vol_type = local.prater_data_vol_type
|
2021-10-22 16:23:22 +00:00
|
|
|
host_count = 1
|
2021-03-18 04:59:45 +00:00
|
|
|
|
|
|
|
/* 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
|
2022-05-25 09:57:25 +00:00
|
|
|
keypair_name = aws_key_pair.jakubgs.key_name
|
2021-03-18 04:59:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module "nimbus_nodes_prater_unstable_large" {
|
|
|
|
source = "github.com/status-im/infra-tf-amazon-web-services"
|
|
|
|
|
|
|
|
name = "unstable-large"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-unstable"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
/* Scaling */
|
2021-10-20 10:45:32 +00:00
|
|
|
type = local.prater_large_instance_type
|
2021-03-18 04:59:45 +00:00
|
|
|
root_vol_size = local.prater_root_vol_size
|
2022-02-17 20:19:04 +00:00
|
|
|
data_vol_size = local.prater_data_vol_size
|
|
|
|
data_vol_type = local.prater_data_vol_type
|
2021-10-22 16:23:22 +00:00
|
|
|
host_count = 1
|
2021-03-18 04:59:45 +00:00
|
|
|
|
|
|
|
/* Firewall */
|
|
|
|
open_udp_ports = local.nimbus_ports
|
|
|
|
open_tcp_ports = local.nimbus_ports
|
|
|
|
|
|
|
|
/* Plumbing */
|
|
|
|
vpc_id = module.nimbus_network.vpc.id
|
2021-04-02 07:00:02 +00:00
|
|
|
subnet_id = module.nimbus_network.subnets[0].id
|
|
|
|
secgroup_id = module.nimbus_network.secgroup.id
|
2022-05-25 09:57:25 +00:00
|
|
|
keypair_name = aws_key_pair.jakubgs.key_name
|
2021-04-02 07:00:02 +00:00
|
|
|
}
|
2021-06-02 12:37:32 +00:00
|
|
|
|
2022-02-25 13:19:08 +00:00
|
|
|
module "nimbus_nodes_prater_windows" {
|
2022-05-05 11:02:48 +00:00
|
|
|
source = "github.com/status-im/infra-tf-dummy-module"
|
2022-02-25 13:19:08 +00:00
|
|
|
|
|
|
|
name = "windows"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-windows"
|
|
|
|
region = "eu-hel1"
|
|
|
|
prefix = "he"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
/* Windows */
|
2022-03-03 20:02:59 +00:00
|
|
|
become_user = "admin"
|
2022-02-28 15:49:37 +00:00
|
|
|
become_method = "runas"
|
|
|
|
shell_type = "powershell"
|
2022-02-25 13:19:08 +00:00
|
|
|
|
|
|
|
ips = [
|
|
|
|
"65.21.233.67", # windows-01.he-eu-hel1.nimbus.prater
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2022-08-30 18:19:47 +00:00
|
|
|
module "nimbus_nodes_prater_hetzner" {
|
|
|
|
source = "github.com/status-im/infra-tf-dummy-module"
|
|
|
|
|
|
|
|
name = "linux"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-metal"
|
|
|
|
region = "eu-hel1"
|
|
|
|
prefix = "he"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
ips = [
|
|
|
|
"95.217.198.113", # linux-01.he-eu-hel1.nimbus.prater
|
|
|
|
"95.217.230.20", # linux-02.he-eu-hel1.nimbus.prater
|
|
|
|
"65.108.132.230", # linux-03.he-eu-hel1.nimbus.prater
|
|
|
|
"135.181.20.36", # linux-04.he-eu-hel1.nimbus.prater
|
|
|
|
"95.217.224.92", # linux-05.he-eu-hel1.nimbus.prater
|
|
|
|
"95.217.204.216", # linux-06.he-eu-hel1.nimbus.prater
|
|
|
|
]
|
|
|
|
}
|
2023-01-30 20:32:23 +00:00
|
|
|
|
|
|
|
/* Possible future alternative to Hetzner */
|
|
|
|
module "nimbus_nodes_prater_ctrl_servers" {
|
|
|
|
source = "github.com/status-im/infra-tf-dummy-module"
|
|
|
|
|
|
|
|
name = "linux"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-metal"
|
|
|
|
region = "eu-nld1"
|
|
|
|
prefix = "cs"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
ips = [
|
|
|
|
"95.168.165.2", # linux-01.cs-eu-nld1.nimbus.prater
|
|
|
|
]
|
|
|
|
}
|
2022-08-30 18:19:47 +00:00
|
|
|
|
2021-10-05 08:34:16 +00:00
|
|
|
/* Community test REST API endpoints. */
|
2021-10-04 14:54:43 +00:00
|
|
|
resource "cloudflare_record" "unstable_prater_beacon_api" {
|
|
|
|
zone_id = local.zones["nimbus.team"]
|
|
|
|
name = "unstable.prater.beacon-api"
|
|
|
|
value = module.nimbus_nodes_prater_hetzner.public_ips[0]
|
|
|
|
type = "A"
|
|
|
|
proxied = false
|
|
|
|
}
|
|
|
|
|
2021-10-05 08:34:16 +00:00
|
|
|
resource "cloudflare_record" "testing_prater_beacon_api" {
|
|
|
|
zone_id = local.zones["nimbus.team"]
|
|
|
|
name = "testing.prater.beacon-api"
|
|
|
|
value = module.nimbus_nodes_prater_hetzner.public_ips[1]
|
|
|
|
type = "A"
|
|
|
|
proxied = false
|
|
|
|
}
|
|
|
|
|
2022-11-17 10:24:00 +00:00
|
|
|
/* ERA Files hosting */
|
|
|
|
resource "cloudflare_record" "era_prater" {
|
|
|
|
zone_id = local.zones["nimbus.team"]
|
|
|
|
name = "prater.era"
|
|
|
|
value = module.nimbus_nodes_prater_hetzner.public_ips[0]
|
|
|
|
type = "A"
|
|
|
|
proxied = true
|
|
|
|
}
|
|
|
|
|
2021-09-24 10:28:25 +00:00
|
|
|
module "nimbus_nodes_prater_macos" {
|
2022-05-05 11:02:48 +00:00
|
|
|
source = "github.com/status-im/infra-tf-dummy-module"
|
2021-09-24 10:28:25 +00:00
|
|
|
|
2022-02-25 13:19:08 +00:00
|
|
|
name = "macos"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-macos"
|
|
|
|
region = "eu-dublin"
|
|
|
|
prefix = "ms"
|
|
|
|
domain = var.domain
|
2021-09-24 10:28:25 +00:00
|
|
|
|
2022-01-24 14:43:58 +00:00
|
|
|
ips = ["207.254.102.98"]
|
2021-09-24 10:28:25 +00:00
|
|
|
}
|