2021-03-18 12:59:45 +08:00
|
|
|
locals {
|
|
|
|
/* Volumes */
|
|
|
|
prater_root_vol_size = 20
|
2023-07-16 10:13:36 +02:00
|
|
|
prater_data_vol_size = 400
|
2022-02-17 21:19:04 +01:00
|
|
|
prater_data_vol_type = "gp2"
|
2021-03-18 12:59:45 +08: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 12:45:32 +02:00
|
|
|
type = local.prater_large_instance_type
|
2021-03-18 12:59:45 +08:00
|
|
|
root_vol_size = local.prater_root_vol_size
|
2022-02-17 21:19:04 +01:00
|
|
|
data_vol_size = local.prater_data_vol_size
|
|
|
|
data_vol_type = local.prater_data_vol_type
|
2021-10-22 18:23:22 +02:00
|
|
|
host_count = 1
|
2021-03-18 12:59:45 +08: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 11:57:25 +02:00
|
|
|
keypair_name = aws_key_pair.jakubgs.key_name
|
2021-03-18 12:59:45 +08: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 12:45:32 +02:00
|
|
|
type = local.prater_large_instance_type
|
2021-03-18 12:59:45 +08:00
|
|
|
root_vol_size = local.prater_root_vol_size
|
2022-02-17 21:19:04 +01:00
|
|
|
data_vol_size = local.prater_data_vol_size
|
|
|
|
data_vol_type = local.prater_data_vol_type
|
2021-10-22 18:23:22 +02:00
|
|
|
host_count = 1
|
2021-03-18 12:59:45 +08: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 11:57:25 +02:00
|
|
|
keypair_name = aws_key_pair.jakubgs.key_name
|
2021-03-18 12:59:45 +08: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 12:45:32 +02:00
|
|
|
type = local.prater_large_instance_type
|
2021-03-18 12:59:45 +08:00
|
|
|
root_vol_size = local.prater_root_vol_size
|
2022-02-17 21:19:04 +01:00
|
|
|
data_vol_size = local.prater_data_vol_size
|
|
|
|
data_vol_type = local.prater_data_vol_type
|
2021-10-22 18:23:22 +02:00
|
|
|
host_count = 1
|
2021-03-18 12:59:45 +08: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 15:00:02 +08:00
|
|
|
subnet_id = module.nimbus_network.subnets[0].id
|
|
|
|
secgroup_id = module.nimbus_network.secgroup.id
|
2022-05-25 11:57:25 +02:00
|
|
|
keypair_name = aws_key_pair.jakubgs.key_name
|
2021-04-02 15:00:02 +08:00
|
|
|
}
|
2021-06-02 14:37:32 +02:00
|
|
|
|
2023-07-07 12:16:16 +02:00
|
|
|
module "nimbus_nodes_prater_windows_hetzner" {
|
2022-05-05 13:02:48 +02:00
|
|
|
source = "github.com/status-im/infra-tf-dummy-module"
|
2022-02-25 14:19:08 +01:00
|
|
|
|
|
|
|
name = "windows"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-windows"
|
|
|
|
region = "eu-hel1"
|
|
|
|
prefix = "he"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
/* Windows */
|
2022-03-03 21:02:59 +01:00
|
|
|
become_user = "admin"
|
2022-02-28 16:49:37 +01:00
|
|
|
become_method = "runas"
|
|
|
|
shell_type = "powershell"
|
2022-02-25 14:19:08 +01:00
|
|
|
|
|
|
|
ips = [
|
|
|
|
"65.21.233.67", # windows-01.he-eu-hel1.nimbus.prater
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2023-07-07 12:16:16 +02:00
|
|
|
module "nimbus_nodes_prater_windows_innova" {
|
|
|
|
source = "github.com/status-im/infra-tf-dummy-module"
|
|
|
|
|
|
|
|
name = "windows"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-windows"
|
|
|
|
region = "eu-mda1"
|
|
|
|
prefix = "ih"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
/* Windows */
|
|
|
|
become_user = "admin"
|
|
|
|
become_method = "runas"
|
|
|
|
shell_type = "powershell"
|
|
|
|
|
|
|
|
ips = [
|
|
|
|
"194.33.40.240", # windows-01.ih-eu-mda1.nimbus.prater
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2023-06-02 10:28:57 +02:00
|
|
|
module "nimbus_nodes_prater_innova" {
|
|
|
|
source = "github.com/status-im/infra-tf-dummy-module"
|
|
|
|
|
|
|
|
name = "linux"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-metal"
|
|
|
|
region = "eu-mda1"
|
|
|
|
prefix = "ih"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
ips = [
|
2023-06-22 20:42:02 +02:00
|
|
|
"185.181.230.78", # linux-01.ih-eu-mda1.nimbus.prater
|
|
|
|
"185.181.230.79", # linux-02.ih-eu-mda1.nimbus.prater
|
|
|
|
"185.181.230.121", # linux-03.ih-eu-mda1.nimbus.prater
|
|
|
|
"194.33.40.231", # linux-04.ih-eu-mda1.nimbus.prater
|
|
|
|
"194.33.40.232", # linux-05.ih-eu-mda1.nimbus.prater
|
|
|
|
"194.33.40.233", # linux-06.ih-eu-mda1.nimbus.prater
|
2023-06-02 10:28:57 +02:00
|
|
|
]
|
|
|
|
}
|
2022-08-30 20:19:47 +02:00
|
|
|
|
2021-10-05 10:34:16 +02:00
|
|
|
/* Community test REST API endpoints. */
|
2021-10-04 16:54:43 +02:00
|
|
|
resource "cloudflare_record" "unstable_prater_beacon_api" {
|
|
|
|
zone_id = local.zones["nimbus.team"]
|
|
|
|
name = "unstable.prater.beacon-api"
|
2023-06-16 12:22:55 +02:00
|
|
|
value = module.nimbus_nodes_prater_innova.public_ips[0]
|
2021-10-04 16:54:43 +02:00
|
|
|
type = "A"
|
|
|
|
proxied = false
|
|
|
|
}
|
|
|
|
|
2021-10-05 10:34:16 +02:00
|
|
|
resource "cloudflare_record" "testing_prater_beacon_api" {
|
|
|
|
zone_id = local.zones["nimbus.team"]
|
|
|
|
name = "testing.prater.beacon-api"
|
2023-06-16 12:22:55 +02:00
|
|
|
value = module.nimbus_nodes_prater_innova.public_ips[1]
|
2021-10-05 10:34:16 +02:00
|
|
|
type = "A"
|
|
|
|
proxied = false
|
|
|
|
}
|
|
|
|
|
2022-11-17 11:24:00 +01:00
|
|
|
/* ERA Files hosting */
|
|
|
|
resource "cloudflare_record" "era_prater" {
|
|
|
|
zone_id = local.zones["nimbus.team"]
|
|
|
|
name = "prater.era"
|
2023-07-06 09:32:04 +02:00
|
|
|
value = module.nimbus_nodes_prater_innova.public_ips[0]
|
2022-11-17 11:24:00 +01:00
|
|
|
type = "A"
|
|
|
|
proxied = true
|
|
|
|
}
|
|
|
|
|
2023-08-18 21:40:32 +02:00
|
|
|
module "nimbus_nodes_prater_macm1_innova" {
|
|
|
|
source = "github.com/status-im/infra-tf-dummy-module"
|
|
|
|
|
|
|
|
name = "macm1"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-macos"
|
|
|
|
region = "eu-mda1"
|
|
|
|
prefix = "ih"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
ips = [
|
|
|
|
"185.181.230.76" # macm1-01.ih-eu-mda1.nimbus.prater
|
|
|
|
]
|
2021-09-24 18:28:25 +08:00
|
|
|
}
|