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}β