Migrating from an external Primary Site using Geo with external Postgres
Summary
Update Migrating from an external Primary Site using Geo
for cases when migrating to RDS:
- Verify and document required changes for non-GET RDS -> GET RDS migration
- Document that
Omnibus PG cluster non-GET -> PaaS PG GET
requires manual backup/restore and case is outside of GET migration
Details
When using Migrating from an external Primary Site using Geo for cases when migration is happening from non-GET RDS to GET provisioned RDS an error happens
Error: creating RDS DB Instance (read replica) (...): InvalidParameterCombination: A parameter group can't be specified during Read Replica creation for the following DB engine: postgres
70│ status code: 400, request id: ...
71│
72│ with module.gitlab_ref_arch_aws.aws_db_instance.gitlab[0],
73│ on .terraform/modules/gitlab_ref_arch_aws/terraform/modules/gitlab_ref_arch_aws/rds.tf line 50, in resource "aws_db_instance" "gitlab":
74│ 50: resource "aws_db_instance" "gitlab" {
The workaround below in rds.tf
resolved customer issue
parameter_group_name = local.rds_postgres_is_primary ? aws_db_parameter_group.gitlab[0].name : null