Skip to content

Commit

Permalink
fix iam name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremias - DNX committed Dec 16, 2021
1 parent b5e209d commit 4f81158
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 @@ -95,7 +95,7 @@ resource "aws_db_option_group" "rds_custom_db_og" {
resource "aws_iam_role" "rds_monitoring" {
count = var.monitoring_interval > 0 ? 1 : 0

name = "rds-${var.database_name}-enhanced-monitoring"
name = "rds-${var.name}-enhanced-monitoring"
managed_policy_arns = ["arn:aws:iam::aws:policy/service-role/AmazonRDSEnhancedMonitoringRole"]
assume_role_policy = jsonencode({
Version = "2012-10-17"
Expand Down

0 comments on commit 4f81158

Please sign in to comment.