move pyrmont variables to pyrmont.tf

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-01-19 10:33:27 +01:00
parent 67ebb93be3
commit 2b4c2320ce
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 25 additions and 26 deletions

10
pyrmont.tf Normal file
View File

@ -0,0 +1,10 @@
locals {
/* Volumes */
pyrmont_root_vol_size = 20
pyrmont_data_vol_size = 150
pyrmont_data_vol_type = "io1"
pyrmont_data_vol_iops = 2000
/* Instances */
pyrmont_large_instance_type = "z1d.large"
pyrmont_small_instance_type = "t3a.medium"
}

View File

@ -1,14 +1,3 @@
locals {
/* Volumes */
pyrmont_root_vol_size = 20
pyrmont_data_vol_size = 150
pyrmont_data_vol_type = "io1"
pyrmont_data_vol_iops = 2000
/* Instances */
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"

View File

@ -10,9 +10,9 @@ module "nimbus_nodes_pyrmont_master_large" {
/* Scaling */
instance_type = "z1d.large"
root_vol_size = 20
data_vol_size = 150
data_vol_type = "io1"
data_vol_iops = 2000
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 */
@ -38,9 +38,9 @@ module "nimbus_nodes_pyrmont_master_small" {
/* Scaling */
instance_type = "t3a.medium"
root_vol_size = 20
data_vol_size = 150
data_vol_type = "io1"
data_vol_iops = 2000
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 */
@ -66,9 +66,9 @@ module "nimbus_nodes_pyrmont_devel_large" {
/* Scaling */
instance_type = "z1d.large"
root_vol_size = 20
data_vol_size = 150
data_vol_type = "io1"
data_vol_iops = 2000
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 */
@ -94,9 +94,9 @@ module "nimbus_nodes_pyrmont_devel_small" {
/* Scaling */
instance_type = "t3a.medium"
root_vol_size = 20
data_vol_size = 150
data_vol_type = "io1"
data_vol_iops = 2000
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 */
@ -122,9 +122,9 @@ module "nimbus_nodes_pyrmont_libp2p_small" {
/* Scaling */
instance_type = "t3a.medium"
root_vol_size = 20
data_vol_size = 150
data_vol_type = "io1"
data_vol_iops = 2000
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 */