open UDP ports for beacon nodes

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-02-21 23:50:09 +01:00
parent e8bef4c9b5
commit 1352c13df2
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 14 additions and 20 deletions

View File

@ -1,5 +1,12 @@
/* NETWORK --------------------------------------*/ /* NETWORK --------------------------------------*/
locals {
nimbus_ports = [
"9000-9010", /* Nimbus ports */
"9100-9110", /* Nimbus ports */
]
}
module "nimbus_network" { module "nimbus_network" {
source = "./modules/aws-vpc" source = "./modules/aws-vpc"
@ -7,13 +14,8 @@ module "nimbus_network" {
stage = "test" stage = "test"
/* Firewall */ /* Firewall */
open_tcp_ports = [ open_udp_ports = local.nimbus_ports
"22", /* SSH */ open_tcp_ports = concat(local.nimbus_ports, [ "22", "80", "443" ])
"80", /* HTTP */
"443", /* HTTPS */
"9000-9010", /* Nimbus ports */
"9100-9110", /* Nimbus ports */
]
} }
/* HOSTS ----------------------------------------*/ /* HOSTS ----------------------------------------*/
@ -32,12 +34,8 @@ module "nimbus_master" {
host_count = 1 host_count = 1
/* Firewall */ /* Firewall */
open_tcp_ports = [ open_udp_ports = local.nimbus_ports
"80", /* HTTP */ open_tcp_ports = concat(local.nimbus_ports, [ "80", "443" ])
"443", /* HTTPS */
"9000-9010", /* Nimbus ports */
"9100-9110", /* Nimbus ports */
]
/* Plumbing */ /* Plumbing */
vpc_id = module.nimbus_network.vpc_id vpc_id = module.nimbus_network.vpc_id
@ -60,13 +58,9 @@ module "nimbus_nodes" {
host_count = var.hosts_count host_count = var.hosts_count
/* Firewall */ /* Firewall */
open_tcp_ports = [ open_udp_ports = local.nimbus_ports
"80", /* HTTP */ open_tcp_ports = local.nimbus_ports
"443", /* HTTPS */
"9000-9010", /* beacon node */
"9100-9110", /* beacon node */
]
/* Plumbing */ /* Plumbing */
vpc_id = module.nimbus_network.vpc_id vpc_id = module.nimbus_network.vpc_id
subnet_id = module.nimbus_network.subnet_id subnet_id = module.nimbus_network.subnet_id