Skip to content

Commit

Permalink
consolidate storage used for read replica & main instance (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
dydxwill authored Oct 14, 2024
1 parent c1a17a7 commit 41a42b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions indexer/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 0 additions & 6 deletions indexer/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 41a42b4

Please sign in to comment.