2023-11-23 11:33:53 +00:00
|
|
|
module "db" {
|
2024-01-10 19:09:23 +00:00
|
|
|
source = "github.com/status-im/infra-tf-multi-provider"
|
2023-11-23 11:33:53 +00:00
|
|
|
|
|
|
|
/* node type */
|
|
|
|
name = "db"
|
|
|
|
group = "status-db"
|
|
|
|
env = local.ws.env
|
|
|
|
stage = local.ws.stage
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
/* scaling */
|
|
|
|
host_count = local.ws["db_count"]
|
|
|
|
|
2024-01-10 19:09:23 +00:00
|
|
|
/* instance type */
|
|
|
|
do_type = local.ws["db_do_type"]
|
|
|
|
ac_type = local.ws["db_ac_type"]
|
|
|
|
gc_type = local.ws["db_gc_type"]
|
|
|
|
|
2023-11-23 11:33:53 +00:00
|
|
|
/* data volumes */
|
2024-01-10 19:09:23 +00:00
|
|
|
do_data_vol_size = local.ws["db_data_vol_size"]
|
2024-02-01 14:02:37 +00:00
|
|
|
ac_data_vol_size = local.ws["db_data_vol_size"]
|
|
|
|
gc_data_vol_size = local.ws["db_data_vol_size"]
|
2024-01-10 19:09:23 +00:00
|
|
|
|
|
|
|
/* fix for volume size */
|
|
|
|
ac_data_vol_type = local.ws["db_ac_data_vol_type"]
|
2023-11-23 11:33:53 +00:00
|
|
|
}
|