Problem with the major version upgrade of aurora postgresql cluster

We are using 0.12.26 version of terraform and tested the upgrade with 3.40, 3.74 and 4.13.0 providers.
upgrade from 10.20 to 12.10 as well as 10.20 to 11.15 failing with below same error .

Error: error modifying RDS Cluster Instance (depten-aps-dbd): InvalidParameterCombination: The Parameter Group dbf-aurora-postgresql12 with DBParameterGroupFamily aurora-postgresql12 cannot be used for this instance. Please use a Parameter Group with DBParameterGroupFamily aurora-postgresql10

status code: 400, request id: 3a1d4560-9c18-4147-b805-a1cf1be7fa30

module β€œaurora” {
providers = {
aws = aws.region
}

source = β€œβ€¦/modules/aurora_db12”
cluster_identifier = β€œ{local.cluster_identifier}" global_cluster_identifier = "{local.global_cluster_identifier}”

global_cluster_required = β€œ${var.global_cluster_required}”

environment = β€œ{var.environment}" application_id = "{var.application_id}”
account_id = β€œ{data.aws_caller_identity.current.account_id}" master_password = "{local.master_password}”
master_username = β€œ{local.master_username}" engine = "{var.engine}”
instance_flavour = β€œ{var.instance_flavour}" db_subnet_group_name = "{var.db_subnet_group_name}”
region = β€œ{var.region}" source_region = "{var.source_region}”
enable_replica = β€œ{var.enable_replica}" ca_cert_identifier = "{var.ca_cert_identifier}”
kms_key_id = β€œ{data.aws_kms_alias.kms.target_key_arn}" securitygroup_id = "{local.rds_securitygroups}” //β€œ{local.rds_securitygroups}", db_cluster_parameter_group_name = "{var.db_parameter_group_name}”
db_parameter_group_name = β€œ{var.db_parameter_group_name}" snapshot_identifier = "{var.snapshot_identifier}”
storage_encrypted = β€œ{var.storage_encrypted}" multi_az = "{var.multi_az}”
publicly_accessible = β€œ{var.publicly_accessible}" allow_major_version_upgrade = "{var.allow_major_version_upgrade}”
auto_minor_version_upgrade = β€œ{var.auto_minor_version_upgrade}" apply_immediately = "{var.apply_immediately}”
iam_database_authentication_enabled = β€œfalse”
skip_final_snapshot = β€œ{var.skip_final_snapshot}" copy_tags_to_snapshot = "{var.copy_tags_to_snapshot}”
backup_retention_period = β€œ{var.backup_retention_period}" postgre_parameter_group_name = "{var.postgre_parameter_group_name}”
id_dbrole = β€œ{var.id_dbrole}" postgre_version = "{var.postgre_version}”
postgre_port = β€œ{var.postgre_port}" id_dbengine = "{var.id_dbengine}”
monitoring_interval = β€œ{var.monitoring_interval}" monitoring_role = "{var.monitoring_role}”
storage_type = β€œ{var.storage_type}" preferred_backup_window = "{var.preferred_backup_window}”
cluster_preferred_maintenance_window = β€œ{var.cluster_preferred_maintenance_window}" instance_preferred_maintenance_window = "{var.instance_preferred_maintenance_window}”
replica_preferred_maintenance_window = β€œ{var.replica_preferred_maintenance_window}" backup_window = "{var.backup_window}”
database_name = β€œ{local.database_name}" instance_class = "{var.instance_class}”

Hi , Did you manage to find solution? I a, getting the same error while upgrading 13 to 14

1 Like

Same issue. Have you managed to resolve?

As a workaround try to set db_parameter_group_name of resource aws_rds_cluster_instance to null