From 142a9c7e4dd27fe19f287756ed5145365e6a55a5 Mon Sep 17 00:00:00 2001 From: Kris Bloe Date: Tue, 2 Apr 2024 09:09:56 +0100 Subject: [PATCH] Added lifecycle.ignore_changes.engine_version to aws_rds_cluster.db-cluster --- terraform/rds.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/terraform/rds.tf b/terraform/rds.tf index ebc208f2..0fc6ced3 100644 --- a/terraform/rds.tf +++ b/terraform/rds.tf @@ -26,6 +26,12 @@ resource "aws_rds_cluster" "db-cluster" { CreatedBy = var.repo_name Environment = var.environment } + + lifecycle { + ignore_changes = [ + engine_version + ] + } } resource "aws_kms_key" "ehr-repo-key" { @@ -162,4 +168,3 @@ resource "aws_security_group_rule" "vpn_to_db_sg" { data "aws_ssm_parameter" "repo_databases_parameter_group_name" { name = "/repo/${var.environment}/output/prm-deductions-infra/repo-databases-parameter-group-name-version-13" } -