2021-03-18 04:59:45 +00:00
|
|
|
locals {
|
|
|
|
/* Volumes */
|
|
|
|
prater_root_vol_size = 20
|
|
|
|
prater_data_vol_size = 50
|
|
|
|
prater_data_vol_type = "io1"
|
|
|
|
prater_data_vol_iops = 2500
|
|
|
|
/* 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
|
|
|
|
data_vol_size = local.prater_data_vol_size
|
|
|
|
data_vol_type = local.prater_data_vol_type
|
|
|
|
data_vol_iops = local.prater_data_vol_iops
|
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
|
2021-03-22 14:47:51 +00:00
|
|
|
keypair_name = aws_key_pair.arthurk.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
|
|
|
|
data_vol_size = local.prater_data_vol_size
|
|
|
|
data_vol_type = local.prater_data_vol_type
|
|
|
|
data_vol_iops = local.prater_data_vol_iops
|
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
|
2021-03-22 14:47:51 +00:00
|
|
|
keypair_name = aws_key_pair.arthurk.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
|
|
|
|
data_vol_size = local.prater_data_vol_size
|
|
|
|
data_vol_type = local.prater_data_vol_type
|
|
|
|
data_vol_iops = local.prater_data_vol_iops
|
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
|
|
|
|
keypair_name = aws_key_pair.arthurk.key_name
|
|
|
|
}
|
2021-06-02 12:37:32 +00:00
|
|
|
|
|
|
|
module "nimbus_nodes_prater_unstable_windows" {
|
|
|
|
source = "github.com/status-im/infra-tf-google-cloud"
|
|
|
|
|
|
|
|
/* Specific */
|
|
|
|
name = "windows"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-windows"
|
|
|
|
domain = var.domain
|
|
|
|
zone = "us-central1-a"
|
|
|
|
|
|
|
|
/* System */
|
2021-06-23 07:44:06 +00:00
|
|
|
image = "windows-cloud/windows-server-2019-dc-v20210608"
|
2021-06-02 12:37:32 +00:00
|
|
|
win_password = data.pass_password.windows_user_pass.password
|
|
|
|
ansible_playbook = "${path.cwd}/ansible/bootstrap-win.yml"
|
|
|
|
|
2021-06-09 21:03:46 +00:00
|
|
|
/* Firewall */
|
|
|
|
open_udp_ports = local.nimbus_ports
|
|
|
|
open_tcp_ports = local.nimbus_ports
|
|
|
|
|
2021-06-02 12:37:32 +00:00
|
|
|
/* Scaling */
|
2021-07-16 16:49:01 +00:00
|
|
|
type = "c2-standard-8" /* 4 vCPUs, 16GB RAM */
|
2021-06-02 12:37:32 +00:00
|
|
|
host_count = 1
|
2021-07-16 13:14:30 +00:00
|
|
|
root_vol_size = 200
|
2021-06-02 12:37:32 +00:00
|
|
|
root_vol_type = "pd-ssd"
|
|
|
|
}
|
2021-06-28 07:59:17 +00:00
|
|
|
|
|
|
|
module "nimbus_nodes_prater_hetzner" {
|
2021-09-24 10:28:25 +00:00
|
|
|
source = "./modules/dummy-module"
|
2021-06-28 07:59:17 +00:00
|
|
|
|
|
|
|
name = "metal"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-metal"
|
|
|
|
domain = var.domain
|
|
|
|
|
2021-10-04 20:47:26 +00:00
|
|
|
ips = [
|
|
|
|
"65.21.73.183", # metal-01.he-eu-hel1.nimbus.prater
|
|
|
|
"65.108.5.45", # metal-02.he-eu-hel1.nimbus.prater
|
|
|
|
]
|
2021-06-28 07:59:17 +00:00
|
|
|
}
|
2021-09-24 10:28:25 +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
|
|
|
|
}
|
|
|
|
|
2021-09-24 10:28:25 +00:00
|
|
|
module "nimbus_nodes_prater_macos" {
|
|
|
|
source = "./modules/dummy-module"
|
|
|
|
|
|
|
|
name = "macos"
|
|
|
|
env = "nimbus"
|
|
|
|
stage = "prater"
|
|
|
|
group = "nimbus-prater-macos"
|
|
|
|
region = "eu-dublin"
|
|
|
|
provider_name = "ms"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
ips = ["207.254.102.130"]
|
|
|
|
}
|