From d9c21f7d5bdf755384e198d9ea480321edeff643 Mon Sep 17 00:00:00 2001 From: Arthur Koziel Date: Fri, 2 Apr 2021 15:00:02 +0800 Subject: [PATCH] add terraform module for libp2p-unstable Signed-off-by: Arthur Koziel --- ansible/inventory/test | 6 ++++++ prater.tf | 27 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/ansible/inventory/test b/ansible/inventory/test index 93f0105..16e7ea5 100644 --- a/ansible/inventory/test +++ b/ansible/inventory/test @@ -27,6 +27,7 @@ testing-small-02.aws-eu-central-1a.nimbus.pyrmont hostname=testing-small-02.aws- testing-small-03.aws-eu-central-1a.nimbus.pyrmont hostname=testing-small-03.aws-eu-central-1a.nimbus.pyrmont ansible_host=35.156.225.126 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=testing-small-03.aws-eu-central-1a.nimbus.pyrmont.statusim.net testing-small-04.aws-eu-central-1a.nimbus.pyrmont hostname=testing-small-04.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.193.215.229 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=testing-small-04.aws-eu-central-1a.nimbus.pyrmont.statusim.net u-libp2p-s-large-01.aws-eu-central-1a.nimbus.prater hostname=u-libp2p-s-large-01.aws-eu-central-1a.nimbus.prater ansible_host=3.65.85.93 env=nimbus stage=prater data_center=aws-eu-central-1a region=eu-central-1a dns_entry=u-libp2p-s-large-01.aws-eu-central-1a.nimbus.prater.statusim.net +u-libp2p-u-large-01.aws-eu-central-1a.nimbus.prater hostname=u-libp2p-u-large-01.aws-eu-central-1a.nimbus.prater ansible_host=18.158.170.20 env=nimbus stage=prater data_center=aws-eu-central-1a region=eu-central-1a dns_entry=u-libp2p-u-large-01.aws-eu-central-1a.nimbus.prater.statusim.net unstable-large-01.aws-eu-central-1a.nimbus.prater hostname=unstable-large-01.aws-eu-central-1a.nimbus.prater ansible_host=3.65.85.130 env=nimbus stage=prater data_center=aws-eu-central-1a region=eu-central-1a dns_entry=unstable-large-01.aws-eu-central-1a.nimbus.prater.statusim.net unstable-large-01.aws-eu-central-1a.nimbus.pyrmont hostname=unstable-large-01.aws-eu-central-1a.nimbus.pyrmont ansible_host=18.198.99.61 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=unstable-large-01.aws-eu-central-1a.nimbus.pyrmont.statusim.net unstable-large-02.aws-eu-central-1a.nimbus.prater hostname=unstable-large-02.aws-eu-central-1a.nimbus.prater ansible_host=3.65.180.246 env=nimbus stage=prater data_center=aws-eu-central-1a region=eu-central-1a dns_entry=unstable-large-02.aws-eu-central-1a.nimbus.prater.statusim.net @@ -67,6 +68,7 @@ testing-small-02.aws-eu-central-1a.nimbus.pyrmont testing-small-03.aws-eu-central-1a.nimbus.pyrmont testing-small-04.aws-eu-central-1a.nimbus.pyrmont u-libp2p-s-large-01.aws-eu-central-1a.nimbus.prater +u-libp2p-u-large-01.aws-eu-central-1a.nimbus.prater unstable-large-01.aws-eu-central-1a.nimbus.prater unstable-large-01.aws-eu-central-1a.nimbus.pyrmont unstable-large-02.aws-eu-central-1a.nimbus.prater @@ -130,6 +132,9 @@ unstable-large-05.aws-eu-central-1a.nimbus.prater [nimbus-prater-unstable-libp2p-stable] u-libp2p-s-large-01.aws-eu-central-1a.nimbus.prater +[nimbus-prater-unstable-libp2p-unstable] +u-libp2p-u-large-01.aws-eu-central-1a.nimbus.prater + [nimbus-pyrmont-stable] stable-large-01.aws-eu-central-1a.nimbus.pyrmont stable-small-01.aws-eu-central-1a.nimbus.pyrmont @@ -172,6 +177,7 @@ testing-large-03.aws-eu-central-1a.nimbus.prater testing-large-04.aws-eu-central-1a.nimbus.prater testing-large-05.aws-eu-central-1a.nimbus.prater u-libp2p-s-large-01.aws-eu-central-1a.nimbus.prater +u-libp2p-u-large-01.aws-eu-central-1a.nimbus.prater unstable-large-01.aws-eu-central-1a.nimbus.prater unstable-large-02.aws-eu-central-1a.nimbus.prater unstable-large-03.aws-eu-central-1a.nimbus.prater diff --git a/prater.tf b/prater.tf index 62528ff..aae9db8 100644 --- a/prater.tf +++ b/prater.tf @@ -118,3 +118,30 @@ module "nimbus_nodes_prater_unstable_libp2p_stable_large" { secgroup_id = module.nimbus_network.secgroup.id keypair_name = aws_key_pair.arthurk.key_name } + +module "nimbus_nodes_prater_unstable_libp2p_unstable_large" { + source = "github.com/status-im/infra-tf-amazon-web-services" + + name = "u-libp2p-u-large" + env = "nimbus" + stage = "prater" + group = "nimbus-prater-unstable-libp2p-unstable" + domain = var.domain + + /* Scaling */ + instance_type = local.prater_large_instance_type + root_vol_size = local.prater_root_vol_size + data_vol_size = local.prater_data_vol_size + data_vol_type = local.prater_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.arthurk.key_name +}