Skip to content

Commit 97c417a

Browse files
thomasplarssonthomas.larsson
andauthored
fix: Use create_before_destroy lifecycle on parameter groups to support major version upgrades (#354)
Co-authored-by: thomas.larsson <[email protected]> fixes #353
1 parent 8499517 commit 97c417a

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
@@ -399,6 +399,10 @@ resource "aws_rds_cluster_parameter_group" "this" {
399399
}
400400
}
401401

402+
lifecycle {
403+
create_before_destroy = true
404+
}
405+
402406
tags = var.tags
403407
}
404408

@@ -424,5 +428,9 @@ resource "aws_db_parameter_group" "this" {
424428
}
425429
}
426430

431+
lifecycle {
432+
create_before_destroy = true
433+
}
434+
427435
tags = var.tags
428436
}

0 commit comments

Comments
 (0)