Skip to content

Commit

Permalink
Also override the Name tag in aurora instances
Browse files Browse the repository at this point in the history
There's a name override variable, to be able to override the different aurora instance names, but the override wasn't applied to the tag, so it created an inconsistency
  • Loading branch information
iuriaranda authored Jun 15, 2023
1 parent 807e920 commit b1f524d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aurora/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ resource "aws_rds_cluster_instance" "cluster_instances" {
engine_version = var.engine_version

tags = {
Name = "${var.project}-${var.environment}${var.tag}-aurora${format("%02d", count.index + 1)}"
Name = var.rds_instance_name_overrides == null ? "${var.project}-${var.environment}${var.tag}-aurora${format("%02d", count.index + 1)}" : var.rds_instance_name_overrides[count.index]
Environment = var.environment
Project = var.project
}
Expand Down

0 comments on commit b1f524d

Please sign in to comment.