Skip to content

Commit 9c3d26c

Browse files
authored
fix: Ignore instance engine version updates (#134)
1 parent 3ace635 commit 9c3d26c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ resource "aws_rds_cluster_instance" "this" {
9999
performance_insights_kms_key_id = var.performance_insights_kms_key_id
100100
ca_cert_identifier = var.ca_cert_identifier
101101

102+
# Updating engine version forces replacement of instances, and they shouldn't be replaced
103+
# because cluster will update them if engine version is changed
104+
lifecycle {
105+
ignore_changes = [
106+
engine_version
107+
]
108+
}
109+
102110
tags = var.tags
103111
}
104112

0 commit comments

Comments
 (0)