infra-nimbus/nimbus.tf

52 lines
1.3 KiB
HCL

module "nimbus_master" {
source = "github.com/status-im/infra-tf-amazon-web-services"
name = "master"
env = "nimbus"
group = "nimbus-master"
domain = var.domain
/* Scaling */
instance_type = "t3a.large"
root_vol_size = 20
data_vol_size = 150
data_vol_type = "gp2"
host_count = 1
/* Firewall */
open_udp_ports = local.nimbus_ports
open_tcp_ports = concat(local.nimbus_ports, [ "80", "443" ])
/* 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" {
source = "github.com/status-im/infra-tf-amazon-web-services"
name = "node"
env = "nimbus"
group = "nimbus-slaves"
domain = var.domain
/* Scaling */
instance_type = "t3a.medium"
root_vol_size = 20
data_vol_size = 150
data_vol_type = "gp2"
host_count = var.hosts_count
/* 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
}