dcloud rds replication-slots create

Declare 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>Required

    string

    Also accepted as --id. Constraints: 3-64 chars, /^(?!ewdoc-)[a-z0-9-]+$/

Flags

  • --nameRequired

    string

    Slot name: a-z, 0-9, _; starts with a letter

    Constraints: /^[a-z][a-z0-9_]{0,62}$/

  • --databaseRequired

    string

    The database the slot decodes

    Constraints: 1-63 chars

  • --pluginOptional

    enum

    Output plugin

    One of: pgoutput

    Default: "pgoutput"

Example

dcloud rds replication-slots create id --name example --database example

Generated from the API description, the same one the API checks requests against and the CLI is built from.