diff --git a/ansible/inventory/test b/ansible/inventory/test index 9d344c2..3eab2cf 100644 --- a/ansible/inventory/test +++ b/ansible/inventory/test @@ -1,22 +1,8 @@ # NOTE: This file is generated by terraform.py # For emergency use when Consul fails [all] -devel-large-01.aws-eu-central-1a.nimbus.pyrmont hostname=devel-large-01.aws-eu-central-1a.nimbus.pyrmont ansible_host=3.125.107.176 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=devel-large-01.aws-eu-central-1a.nimbus.pyrmont.statusim.net -devel-large-02.aws-eu-central-1a.nimbus.pyrmont hostname=devel-large-02.aws-eu-central-1a.nimbus.pyrmont ansible_host=35.156.239.243 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=devel-large-02.aws-eu-central-1a.nimbus.pyrmont.statusim.net -devel-small-01.aws-eu-central-1a.nimbus.pyrmont hostname=devel-small-01.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.192.164.99 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=devel-small-01.aws-eu-central-1a.nimbus.pyrmont.statusim.net -devel-small-02.aws-eu-central-1a.nimbus.pyrmont hostname=devel-small-02.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.198.163.2 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=devel-small-02.aws-eu-central-1a.nimbus.pyrmont.statusim.net -devel-small-03.aws-eu-central-1a.nimbus.pyrmont hostname=devel-small-03.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.198.65.195 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=devel-small-03.aws-eu-central-1a.nimbus.pyrmont.statusim.net -devel-small-04.aws-eu-central-1a.nimbus.pyrmont hostname=devel-small-04.aws-eu-central-1a.nimbus.pyrmont ansible_host=52.58.71.58 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=devel-small-04.aws-eu-central-1a.nimbus.pyrmont.statusim.net goerli-01.aws-eu-central-1a.nimbus.geth hostname=goerli-01.aws-eu-central-1a.nimbus.geth ansible_host=18.194.109.141 env=nimbus stage=geth data_center=aws-eu-central-1a region=eu-central-1a dns_entry=goerli-01.aws-eu-central-1a.nimbus.geth.statusim.net -libp2p-small-01.aws-eu-central-1a.nimbus.pyrmont hostname=libp2p-small-01.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.158.168.125 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=libp2p-small-01.aws-eu-central-1a.nimbus.pyrmont.statusim.net -libp2p-small-02.aws-eu-central-1a.nimbus.pyrmont hostname=libp2p-small-02.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.193.16.58 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=libp2p-small-02.aws-eu-central-1a.nimbus.pyrmont.statusim.net mainnet-01.aws-eu-central-1a.nimbus.geth hostname=mainnet-01.aws-eu-central-1a.nimbus.geth ansible_host=18.196.208.138 env=nimbus stage=geth data_center=aws-eu-central-1a region=eu-central-1a dns_entry=mainnet-01.aws-eu-central-1a.nimbus.geth.statusim.net -master-large-01.aws-eu-central-1a.nimbus.pyrmont hostname=master-large-01.aws-eu-central-1a.nimbus.pyrmont ansible_host=3.127.208.1 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-large-01.aws-eu-central-1a.nimbus.pyrmont.statusim.net -master-large-02.aws-eu-central-1a.nimbus.pyrmont hostname=master-large-02.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.198.94.42 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-large-02.aws-eu-central-1a.nimbus.pyrmont.statusim.net -master-small-01.aws-eu-central-1a.nimbus.pyrmont hostname=master-small-01.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.193.255.204 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-small-01.aws-eu-central-1a.nimbus.pyrmont.statusim.net -master-small-02.aws-eu-central-1a.nimbus.pyrmont hostname=master-small-02.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.158.57.49 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-small-02.aws-eu-central-1a.nimbus.pyrmont.statusim.net -master-small-03.aws-eu-central-1a.nimbus.pyrmont hostname=master-small-03.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.192.39.165 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-small-03.aws-eu-central-1a.nimbus.pyrmont.statusim.net -master-small-04.aws-eu-central-1a.nimbus.pyrmont hostname=master-small-04.aws-eu-central-1a.nimbus.pyrmont ansible_host=3.122.169.9 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-small-04.aws-eu-central-1a.nimbus.pyrmont.statusim.net node-01.aws-eu-central-1a.dash.nimbus hostname=node-01.aws-eu-central-1a.dash.nimbus ansible_host=52.28.100.116 env=dash stage=nimbus data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-01.aws-eu-central-1a.dash.nimbus.statusim.net node-01.aws-eu-central-1a.log-store.nimbus hostname=node-01.aws-eu-central-1a.log-store.nimbus ansible_host=35.157.196.157 env=log-store stage=nimbus data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-01.aws-eu-central-1a.log-store.nimbus.statusim.net node-02.aws-eu-central-1a.log-store.nimbus hostname=node-02.aws-eu-central-1a.log-store.nimbus ansible_host=3.64.111.246 env=log-store stage=nimbus data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-02.aws-eu-central-1a.log-store.nimbus.statusim.net @@ -39,22 +25,8 @@ unstable-small-03.aws-eu-central-1a.nimbus.pyrmont hostname=unstable-small-03.aw unstable-small-04.aws-eu-central-1a.nimbus.pyrmont hostname=unstable-small-04.aws-eu-central-1a.nimbus.pyrmont ansible_host=3.125.21.130 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=unstable-small-04.aws-eu-central-1a.nimbus.pyrmont.statusim.net [aws-eu-central-1a] -devel-large-01.aws-eu-central-1a.nimbus.pyrmont -devel-large-02.aws-eu-central-1a.nimbus.pyrmont -devel-small-01.aws-eu-central-1a.nimbus.pyrmont -devel-small-02.aws-eu-central-1a.nimbus.pyrmont -devel-small-03.aws-eu-central-1a.nimbus.pyrmont -devel-small-04.aws-eu-central-1a.nimbus.pyrmont goerli-01.aws-eu-central-1a.nimbus.geth -libp2p-small-01.aws-eu-central-1a.nimbus.pyrmont -libp2p-small-02.aws-eu-central-1a.nimbus.pyrmont mainnet-01.aws-eu-central-1a.nimbus.geth -master-large-01.aws-eu-central-1a.nimbus.pyrmont -master-large-02.aws-eu-central-1a.nimbus.pyrmont -master-small-01.aws-eu-central-1a.nimbus.pyrmont -master-small-02.aws-eu-central-1a.nimbus.pyrmont -master-small-03.aws-eu-central-1a.nimbus.pyrmont -master-small-04.aws-eu-central-1a.nimbus.pyrmont node-01.aws-eu-central-1a.dash.nimbus node-01.aws-eu-central-1a.log-store.nimbus node-02.aws-eu-central-1a.log-store.nimbus @@ -102,26 +74,6 @@ mainnet-01.aws-eu-central-1a.nimbus.geth stable-small-01.aws-eu-central-1a.nimbus.mainnet stable-small-02.aws-eu-central-1a.nimbus.mainnet -[nimbus-pyrmont-devel] -devel-large-01.aws-eu-central-1a.nimbus.pyrmont -devel-large-02.aws-eu-central-1a.nimbus.pyrmont -devel-small-01.aws-eu-central-1a.nimbus.pyrmont -devel-small-02.aws-eu-central-1a.nimbus.pyrmont -devel-small-03.aws-eu-central-1a.nimbus.pyrmont -devel-small-04.aws-eu-central-1a.nimbus.pyrmont - -[nimbus-pyrmont-libp2p] -libp2p-small-01.aws-eu-central-1a.nimbus.pyrmont -libp2p-small-02.aws-eu-central-1a.nimbus.pyrmont - -[nimbus-pyrmont-master] -master-large-01.aws-eu-central-1a.nimbus.pyrmont -master-large-02.aws-eu-central-1a.nimbus.pyrmont -master-small-01.aws-eu-central-1a.nimbus.pyrmont -master-small-02.aws-eu-central-1a.nimbus.pyrmont -master-small-03.aws-eu-central-1a.nimbus.pyrmont -master-small-04.aws-eu-central-1a.nimbus.pyrmont - [nimbus-pyrmont-stable] stable-large-01.aws-eu-central-1a.nimbus.pyrmont stable-small-01.aws-eu-central-1a.nimbus.pyrmont @@ -153,20 +105,6 @@ stable-small-01.aws-eu-central-1a.nimbus.mainnet stable-small-02.aws-eu-central-1a.nimbus.mainnet [nimbus.pyrmont] -devel-large-01.aws-eu-central-1a.nimbus.pyrmont -devel-large-02.aws-eu-central-1a.nimbus.pyrmont -devel-small-01.aws-eu-central-1a.nimbus.pyrmont -devel-small-02.aws-eu-central-1a.nimbus.pyrmont -devel-small-03.aws-eu-central-1a.nimbus.pyrmont -devel-small-04.aws-eu-central-1a.nimbus.pyrmont -libp2p-small-01.aws-eu-central-1a.nimbus.pyrmont -libp2p-small-02.aws-eu-central-1a.nimbus.pyrmont -master-large-01.aws-eu-central-1a.nimbus.pyrmont -master-large-02.aws-eu-central-1a.nimbus.pyrmont -master-small-01.aws-eu-central-1a.nimbus.pyrmont -master-small-02.aws-eu-central-1a.nimbus.pyrmont -master-small-03.aws-eu-central-1a.nimbus.pyrmont -master-small-04.aws-eu-central-1a.nimbus.pyrmont stable-large-01.aws-eu-central-1a.nimbus.pyrmont stable-small-01.aws-eu-central-1a.nimbus.pyrmont testing-large-01.aws-eu-central-1a.nimbus.pyrmont diff --git a/pyrmont.tf b/pyrmont.tf index 0e8f348..60b235d 100644 --- a/pyrmont.tf +++ b/pyrmont.tf @@ -8,3 +8,195 @@ locals { pyrmont_large_instance_type = "z1d.large" pyrmont_small_instance_type = "t3a.medium" } + +module "nimbus_nodes_pyrmont_stable_large" { + source = "github.com/status-im/infra-tf-amazon-web-services" + + name = "stable-large" + env = "nimbus" + stage = "pyrmont" + group = "nimbus-pyrmont-stable" + domain = var.domain + + /* Scaling */ + instance_type = local.pyrmont_large_instance_type + root_vol_size = local.pyrmont_root_vol_size + data_vol_size = local.pyrmont_data_vol_size + data_vol_type = local.pyrmont_data_vol_type + data_vol_iops = local.pyrmont_data_vol_iops + host_count = 1 + + /* 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 +} + +module "nimbus_nodes_pyrmont_stable_small" { + source = "github.com/status-im/infra-tf-amazon-web-services" + + name = "stable-small" + env = "nimbus" + stage = "pyrmont" + group = "nimbus-pyrmont-stable" + domain = var.domain + + /* Scaling */ + instance_type = local.pyrmont_small_instance_type + root_vol_size = local.pyrmont_root_vol_size + data_vol_size = local.pyrmont_data_vol_size + data_vol_type = local.pyrmont_data_vol_type + host_count = 1 + + /* 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 +} + +module "nimbus_nodes_pyrmont_testing_large" { + source = "github.com/status-im/infra-tf-amazon-web-services" + + name = "testing-large" + env = "nimbus" + stage = "pyrmont" + group = "nimbus-pyrmont-testing" + domain = var.domain + + /* Scaling */ + instance_type = local.pyrmont_large_instance_type + root_vol_size = local.pyrmont_root_vol_size + data_vol_size = local.pyrmont_data_vol_size + data_vol_type = local.pyrmont_data_vol_type + data_vol_iops = local.pyrmont_data_vol_iops + host_count = 1 + + /* 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 +} + +module "nimbus_nodes_pyrmont_testing_small" { + source = "github.com/status-im/infra-tf-amazon-web-services" + + name = "testing-small" + env = "nimbus" + stage = "pyrmont" + group = "nimbus-pyrmont-testing" + domain = var.domain + + /* Scaling */ + instance_type = local.pyrmont_small_instance_type + root_vol_size = local.pyrmont_root_vol_size + data_vol_size = local.pyrmont_data_vol_size + data_vol_type = local.pyrmont_data_vol_type + host_count = 4 + + /* 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 +} + +module "nimbus_nodes_pyrmont_unstable_large" { + source = "github.com/status-im/infra-tf-amazon-web-services" + + name = "unstable-large" + env = "nimbus" + stage = "pyrmont" + group = "nimbus-pyrmont-unstable" + domain = var.domain + + /* Scaling */ + instance_type = local.pyrmont_large_instance_type + root_vol_size = local.pyrmont_root_vol_size + data_vol_size = local.pyrmont_data_vol_size + data_vol_type = local.pyrmont_data_vol_type + data_vol_iops = local.pyrmont_data_vol_iops + 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 +} + +module "nimbus_nodes_pyrmont_unstable_small" { + source = "github.com/status-im/infra-tf-amazon-web-services" + + name = "unstable-small" + env = "nimbus" + stage = "pyrmont" + group = "nimbus-pyrmont-unstable" + domain = var.domain + + /* Scaling */ + instance_type = local.pyrmont_small_instance_type + root_vol_size = local.pyrmont_root_vol_size + data_vol_size = local.pyrmont_data_vol_size + data_vol_type = local.pyrmont_data_vol_type + host_count = 4 + + /* 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 +} + +module "nimbus_nodes_pyrmont_unstable_libp2p_small" { + source = "github.com/status-im/infra-tf-amazon-web-services" + + name = "unstable-libp2p-small" + env = "nimbus" + stage = "pyrmont" + group = "nimbus-pyrmont-unstable-libp2p" + domain = var.domain + + /* Scaling */ + instance_type = local.pyrmont_small_instance_type + root_vol_size = local.pyrmont_root_vol_size + data_vol_size = local.pyrmont_data_vol_size + data_vol_type = local.pyrmont_data_vol_type + host_count = 1 + + /* 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 +} diff --git a/pyrmont_new.tf b/pyrmont_new.tf deleted file mode 100644 index 102cfec..0000000 --- a/pyrmont_new.tf +++ /dev/null @@ -1,191 +0,0 @@ -module "nimbus_nodes_pyrmont_stable_large" { - source = "github.com/status-im/infra-tf-amazon-web-services" - - name = "stable-large" - env = "nimbus" - stage = "pyrmont" - group = "nimbus-pyrmont-stable" - domain = var.domain - - /* Scaling */ - instance_type = local.pyrmont_large_instance_type - root_vol_size = local.pyrmont_root_vol_size - data_vol_size = local.pyrmont_data_vol_size - data_vol_type = local.pyrmont_data_vol_type - data_vol_iops = local.pyrmont_data_vol_iops - host_count = 1 - - /* 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 -} - -module "nimbus_nodes_pyrmont_stable_small" { - source = "github.com/status-im/infra-tf-amazon-web-services" - - name = "stable-small" - env = "nimbus" - stage = "pyrmont" - group = "nimbus-pyrmont-stable" - domain = var.domain - - /* Scaling */ - instance_type = local.pyrmont_small_instance_type - root_vol_size = local.pyrmont_root_vol_size - data_vol_size = local.pyrmont_data_vol_size - data_vol_type = local.pyrmont_data_vol_type - host_count = 1 - - /* 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 -} - -module "nimbus_nodes_pyrmont_testing_large" { - source = "github.com/status-im/infra-tf-amazon-web-services" - - name = "testing-large" - env = "nimbus" - stage = "pyrmont" - group = "nimbus-pyrmont-testing" - domain = var.domain - - /* Scaling */ - instance_type = local.pyrmont_large_instance_type - root_vol_size = local.pyrmont_root_vol_size - data_vol_size = local.pyrmont_data_vol_size - data_vol_type = local.pyrmont_data_vol_type - data_vol_iops = local.pyrmont_data_vol_iops - host_count = 1 - - /* 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 -} - -module "nimbus_nodes_pyrmont_testing_small" { - source = "github.com/status-im/infra-tf-amazon-web-services" - - name = "testing-small" - env = "nimbus" - stage = "pyrmont" - group = "nimbus-pyrmont-testing" - domain = var.domain - - /* Scaling */ - instance_type = local.pyrmont_small_instance_type - root_vol_size = local.pyrmont_root_vol_size - data_vol_size = local.pyrmont_data_vol_size - data_vol_type = local.pyrmont_data_vol_type - host_count = 4 - - /* 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 -} - -module "nimbus_nodes_pyrmont_unstable_large" { - source = "github.com/status-im/infra-tf-amazon-web-services" - - name = "unstable-large" - env = "nimbus" - stage = "pyrmont" - group = "nimbus-pyrmont-unstable" - domain = var.domain - - /* Scaling */ - instance_type = local.pyrmont_large_instance_type - root_vol_size = local.pyrmont_root_vol_size - data_vol_size = local.pyrmont_data_vol_size - data_vol_type = local.pyrmont_data_vol_type - data_vol_iops = local.pyrmont_data_vol_iops - 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 -} - -module "nimbus_nodes_pyrmont_unstable_small" { - source = "github.com/status-im/infra-tf-amazon-web-services" - - name = "unstable-small" - env = "nimbus" - stage = "pyrmont" - group = "nimbus-pyrmont-unstable" - domain = var.domain - - /* Scaling */ - instance_type = local.pyrmont_small_instance_type - root_vol_size = local.pyrmont_root_vol_size - data_vol_size = local.pyrmont_data_vol_size - data_vol_type = local.pyrmont_data_vol_type - host_count = 4 - - /* 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 -} - -module "nimbus_nodes_pyrmont_unstable_libp2p_small" { - source = "github.com/status-im/infra-tf-amazon-web-services" - - name = "unstable-libp2p-small" - env = "nimbus" - stage = "pyrmont" - group = "nimbus-pyrmont-unstable-libp2p" - domain = var.domain - - /* Scaling */ - instance_type = local.pyrmont_small_instance_type - root_vol_size = local.pyrmont_root_vol_size - data_vol_size = local.pyrmont_data_vol_size - data_vol_type = local.pyrmont_data_vol_type - host_count = 1 - - /* 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 -} diff --git a/pyrmont_old.tf b/pyrmont_old.tf deleted file mode 100644 index 11eb485..0000000 --- a/pyrmont_old.tf +++ /dev/null @@ -1,139 +0,0 @@ -module "nimbus_nodes_pyrmont_master_large" { - source = "github.com/status-im/infra-tf-amazon-web-services" - - name = "master-large" - env = "nimbus" - stage = "pyrmont" - group = "nimbus-pyrmont-master" - domain = var.domain - - /* Scaling */ - instance_type = "z1d.large" - root_vol_size = 20 - data_vol_size = local.pyrmont_data_vol_size - data_vol_type = local.pyrmont_data_vol_type - data_vol_iops = local.pyrmont_data_vol_iops - 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 -} - -module "nimbus_nodes_pyrmont_master_small" { - source = "github.com/status-im/infra-tf-amazon-web-services" - - name = "master-small" - env = "nimbus" - stage = "pyrmont" - group = "nimbus-pyrmont-master" - domain = var.domain - - /* Scaling */ - instance_type = "t3a.medium" - root_vol_size = 20 - data_vol_size = local.pyrmont_data_vol_size - data_vol_type = local.pyrmont_data_vol_type - data_vol_iops = local.pyrmont_data_vol_iops - host_count = 4 - - /* 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 -} - -module "nimbus_nodes_pyrmont_devel_large" { - source = "github.com/status-im/infra-tf-amazon-web-services" - - name = "devel-large" - env = "nimbus" - stage = "pyrmont" - group = "nimbus-pyrmont-devel" - domain = var.domain - - /* Scaling */ - instance_type = "z1d.large" - root_vol_size = 20 - data_vol_size = local.pyrmont_data_vol_size - data_vol_type = local.pyrmont_data_vol_type - data_vol_iops = local.pyrmont_data_vol_iops - 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 -} - -module "nimbus_nodes_pyrmont_devel_small" { - source = "github.com/status-im/infra-tf-amazon-web-services" - - name = "devel-small" - env = "nimbus" - stage = "pyrmont" - group = "nimbus-pyrmont-devel" - domain = var.domain - - /* Scaling */ - instance_type = "t3a.medium" - root_vol_size = 20 - data_vol_size = local.pyrmont_data_vol_size - data_vol_type = local.pyrmont_data_vol_type - data_vol_iops = local.pyrmont_data_vol_iops - host_count = 4 - - /* 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 -} - -module "nimbus_nodes_pyrmont_libp2p_small" { - source = "github.com/status-im/infra-tf-amazon-web-services" - - name = "libp2p-small" - env = "nimbus" - stage = "pyrmont" - group = "nimbus-pyrmont-libp2p" - domain = var.domain - - /* Scaling */ - instance_type = "t3a.medium" - root_vol_size = 20 - data_vol_size = local.pyrmont_data_vol_size - data_vol_type = local.pyrmont_data_vol_type - data_vol_iops = local.pyrmont_data_vol_iops - 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 -}