RDS oracle with read replica is not working with custom parameter groups and ca_cert_identifier #20538
Labels
bug
Addresses a defect in current functionality.
service/rds
Issues and PRs that pertain to the rds service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform Version: 0.12.29/0.12.31
AWS Provider Version: 3.47.0
Affected Resource(s)
aws_db_instance now support creation of rds oracle read replica but this does not work with custom parameter groups
Steps to Reproduce
To reproduce this error create tf file with below requirement:
rds_parameter_pgparameters = [
{
name = "streams_pool_size"
value = "536870912"
apply_method = "pending-reboot"
},
{
name = "java_pool_size"
value = "52428800"
apply_method = "pending-reboot"
}
]
This will also fail when apply_method is immediate
The code will work if default parameter group is used in place of custom parameters
The workaround to use custom parameter in read replica is to remove ca_cert_identifier attribute from resource and this will work because it takes default value as "rds-ca-2019" but when there is a requirement for different certificate we will need to provide ca_cert_identifier attribute and this will fail.
Below is the resource configuration for primary db and read replica which with ca_cert_identifier
Reference Code:
rds-oracle.zip
Debug Output
Expected Behavior
Read replica db and primary db both should successfully get created with custom paramter
Actual Behavior
Only primary db is getting creating and replica db is failing with error
Instance cannot currently reboot due to an in-progress management operation
When again doing terraform plan the replica db is showing as tainted so it will destroy and create it again and this is never ending until ca_cert_identifier is removed
The text was updated successfully, but these errors were encountered: