Skip to content

Commit

Permalink
removing ignore changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bw-henry-he committed Sep 12, 2022
1 parent a0a1b24 commit d0d472f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ resource "aws_db_instance" "default" {
),
)
db_subnet_group_name = var.replicate_source_db == "" ? join("", aws_db_subnet_group.default.*.name) : null
parameter_group_name = "${module.label.id}-${var.major_engine_version}"
parameter_group_name = length(var.parameter_group_name) > 0 ? var.parameter_group_name : join("", aws_db_parameter_group.default.*.name)
option_group_name = length(var.option_group_name) > 0 ? var.option_group_name : join("", aws_db_option_group.default.*.name)
license_model = var.license_model
multi_az = var.multi_az
Expand All @@ -63,7 +63,7 @@ resource "aws_db_instance" "default" {
monitoring_role_arn = var.monitoring_interval == 0 ? null : var.monitoring_role_arn
performance_insights_enabled = var.performance_insights_enabled
lifecycle {
ignore_changes = [parameter_group_name, db_subnet_group_name]
ignore_changes = [db_subnet_group_name]
}
}

Expand Down

0 comments on commit d0d472f

Please sign in to comment.