Skip to content

Commit

Permalink
change replicate_source_db
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofrigini-dnx committed Dec 16, 2024
1 parent fddd056 commit 3293fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ resource "aws_db_instance" "rds_replica" {
storage_type = var.storage_type
parameter_group_name = var.create_db_parameter_group == true ? aws_db_parameter_group.rds_custom_db_pg[count.index].name : ""
skip_final_snapshot = var.skip_final_snapshot
replicate_source_db = length(aws_db_instance.rds_db) > 0 ? aws_db_instance.rds_db[0].arn : null
replicate_source_db = aws_db_instance.rds_db[0].arn
vpc_security_group_ids = [aws_security_group.rds_db_replica.id]
storage_encrypted = var.storage_encrypted
db_subnet_group_name = try(var.db_subnet_group_replica_id, null)
Expand Down

0 comments on commit 3293fca

Please sign in to comment.