Files
floci/src/main/java
David 008aa9ba35 feat(rds): read replicas with a point-in-time copy of the source (#3813)
CreateDBInstanceReadReplica creates a standalone instance with its own
container and endpoint that inherits the source's engine, version,
credentials, database name and, unless overridden, class, storage and
minor version upgrades; a same-region replica also inherits the parameter,
option, subnet and security groups, a cross-region one (source named by
ARN) gets the region's defaults, as the API reference states. The replica
starts with automated backups off, and both ends report the link the way
DescribeDBInstances does: ReadReplicaSourceDBInstanceIdentifier plus a
"read replication" StatusInfos entry on the replica,
ReadReplicaDBInstanceIdentifiers on the source, identifier within a region
and ARN across regions. A subnet group with a plain identifier source is
refused with DBSubnetGroupNotAllowedFault.

The replica's database is initialised from a pg_dumpall of the source taken
at creation, the mechanism RestoreDBInstanceFromDBSnapshot already uses, so
only PostgreSQL sources are accepted (CreateDBSnapshot draws the same
line). Writes after creation are not streamed; the docs say so.

PromoteReadReplica clears the link on both ends, turns backups on with the
requested retention (one day when omitted) and window, and reboots the
instance as RDS does. Deleting a source promotes its same-region replicas
and leaves a cross-region replica with replication terminated, as the user
guide documents for PostgreSQL; deleting a replica drops it from the
source.
SwitchoverReadReplica is refused with InvalidDBInstanceState, the only
state error the API reference lists, since AWS supports it for Oracle and
SQL Server only. PromoteReadReplicaDBCluster answers
InvalidDBClusterStateFault because no cluster here is created as a replica.

Refs #3778
2026-09-17 11:04:53 -04:00
..