dcloud rds logins create

Create a login (read-only by default); the password goes to Secrets, never into the response

IAM rds:CreateDBLoginChanges state

Reveal the password with secrets get-value on the returned secretId (secrets:GetSecretValue, audited).

Synopsis

dcloud rds logins create id --name name [flags]

Arguments

  • <id>Required

    string

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

Flags

  • --nameRequired

    string

    The Postgres role name: a-z, 0-9, _

    Constraints: 1-63 chars

  • --accessOptional

    enum

    read: SELECT on all data (pg_read_all_data); readwrite: also writes (pg_write_all_data); read when omitted

    One of: read, readwrite

    Default: "read"

  • --for-iam-user-idOptional

    string

    IAM user the login is for, shown with it; omitted: nobody in particular

    Constraints: uuid

  • --valid-untilOptional

    string

    Expiry (VALID UNTIL), 5 minutes to 2 years ahead; omitted is no expiry

    Constraints: datetime

Example

dcloud rds logins create id --name example

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