From 41a42b49d310814e654322cd13ab426a6886e6f5 Mon Sep 17 00:00:00 2001 From: dydxwill <119354122+dydxwill@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:15:38 -0400 Subject: [PATCH] consolidate storage used for read replica & main instance (#145) --- indexer/rds.tf | 4 ++-- indexer/variables.tf | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/indexer/rds.tf b/indexer/rds.tf index 83d29a8a..29b374be 100644 --- a/indexer/rds.tf +++ b/indexer/rds.tf @@ -231,7 +231,7 @@ resource "aws_db_instance" "read_replica" { # be specified for a replica, and will match the properties on the source db. vpc_security_group_ids = [aws_security_group.rds.id] parameter_group_name = aws_db_parameter_group.main.name - allocated_storage = var.rds_read_replica_db_allocated_storage_gb + allocated_storage = var.rds_db_allocated_storage_gb publicly_accessible = false # Set to true if any planned changes need to be applied before the next maintenance window. apply_immediately = false @@ -257,7 +257,7 @@ resource "aws_db_instance" "read_replica_2" { # be specified for a replica, and will match the properties on the source db. vpc_security_group_ids = [aws_security_group.rds.id] parameter_group_name = aws_db_parameter_group.main.name - allocated_storage = var.rds_read_replica_db_allocated_storage_gb + allocated_storage = var.rds_db_allocated_storage_gb publicly_accessible = false # Set to true if any planned changes need to be applied before the next maintenance window. apply_immediately = false diff --git a/indexer/variables.tf b/indexer/variables.tf index 42b727cd..b4911b56 100644 --- a/indexer/variables.tf +++ b/indexer/variables.tf @@ -116,12 +116,6 @@ variable "rds_db_allocated_storage_gb" { default = 1000 } -variable "rds_read_replica_db_allocated_storage_gb" { - type = number - description = "Storage allocated to the Postgres RDS read replica DBs in GB" - default = 1000 -} - variable "elasticache_redis_num_cache_clusters" { type = number description = "Number of elasticache cache clusters"