Skip to content

Commit

Permalink
Merge pull request #27 from TonyLovesDevOps/main
Browse files Browse the repository at this point in the history
Fix DBInstanceIdentifier value in read & write IOPS alarms.
  • Loading branch information
lorenzoaiello authored Apr 29, 2024
2 parents ffd248c + 44919f2 commit dc1387e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ resource "aws_cloudwatch_metric_alarm" "read_iops_too_high" {
ok_actions = var.actions_ok

dimensions = {
DBInstanceIdentifier = "${var.db_instance_id}-read-iops-too-high"
DBInstanceIdentifier = var.db_instance_id
}
}

Expand All @@ -237,6 +237,6 @@ resource "aws_cloudwatch_metric_alarm" "write_iops_too_high" {
ok_actions = var.actions_ok

dimensions = {
DBInstanceIdentifier = "${var.prefix}rds-${var.db_instance_id}-write-iops-too-high"
DBInstanceIdentifier = var.db_instance_id
}
}
}

0 comments on commit dc1387e

Please sign in to comment.