dcloud rds replication-slots createDeclare a logical slot (pgoutput); on a cluster it is kept on every member
IAM rds:CreateDBReplicationSlotChanges state
Needs logicalReplication on. Connect the consumer to port 5432 (direct, not the pooler) with a role that has REPLICATION, e.g. the master user. An inactive slot holds WAL until max_slot_wal_keep_size invalidates it; the health check warns from 1 GiB.
Synopsis
dcloud rds replication-slots create id --name name --database database [flags]Arguments
<id>Requiredstring
Also accepted as
--id. Constraints: 3-64 chars, /^(?!ewdoc-)[a-z0-9-]+$/
Flags
--nameRequiredstring
Slot name: a-z, 0-9, _; starts with a letter
Constraints: /^[a-z][a-z0-9_]{0,62}$/
--databaseRequiredstring
The database the slot decodes
Constraints: 1-63 chars
--pluginOptionalenum
Output plugin
One of:
pgoutputDefault:
"pgoutput"
Example
dcloud rds replication-slots create id --name example --database exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.