GEO RDS Replica Broken
- GET version: 3.2.2
- Cloud Provider: AWS
- Environment configuration: GEO Secondary Configuration
When creating a Read only AWS RDS for a GEO secondary environment. RDS Replica failed to create due to "InvalidParameterCombination" caused by the Parameter Group in Terraform. I was able to fix the bug by adding the following IF statement.
Error
Error: creating RDS DB Instance (read replica) (XXXXX): InvalidParameterCombination: A parameter group can't be specified during Read Replica creation for the following DB engine: postgres
│ status code: 400, request id: XXXXX-XXXX-XXXXX-XXXXX-XXXXXXX
Defined Vars
- rds_postgres_instance_type
- rds_postgres_replication_database_arn
- rds_postgres_delete_automated_backups
Fix
# terraform/modules/gitlab_ref_arch_aws/rds.tf
resource "aws_db_instance" "gitlab" {
....
parameter_group_name = local.rds_postgres_is_primary ? aws_db_parameter_group.gitlab[0].name : null