dcloud rds logins createCreate 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>Requiredstring
Also accepted as
--id. Constraints: 3-64 chars, /^(?!ewdoc-)[a-z0-9-]+$/
Flags
--nameRequiredstring
The Postgres role name: a-z, 0-9, _
Constraints: 1-63 chars
--accessOptionalenum
read: SELECT on all data (pg_read_all_data); readwrite: also writes (pg_write_all_data); read when omitted
One of:
read,readwriteDefault:
"read"--for-iam-user-idOptionalstring
IAM user the login is for, shown with it; omitted: nobody in particular
Constraints: uuid
--valid-untilOptionalstring
Expiry (VALID UNTIL), 5 minutes to 2 years ahead; omitted is no expiry
Constraints: datetime
Example
dcloud rds logins create id --name exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.