dcloud s3 buckets temporary-keyA temporary key for this bucket only, for N hours, acting as you
The way to hand out a credential narrower than yourself: it carries a session policy of this bucket only (read by default, or read and write, optionally one prefix) under your own policies, and it expires. 409 when your own policies allow nothing of it. For a long-lived credential, use create-access-key: a service account with a policy for the bucket.
Synopsis
dcloud s3 buckets temporary-key name [flags]Arguments
<name>Requiredstring
Also accepted as
--name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/
Flags
--hoursOptionalnumber
How long the key lives, 0.25 to 12 hours; default 1
Constraints: 0.25-12
--accessOptionalenum
read (default): list and download; readwrite: also upload and delete
One of:
read,readwrite--prefixOptionalstring
Only objects under this key prefix, e.g. uploads/
Constraints: max 512 chars
--descriptionOptionalstring
What the key is for
Constraints: max 200 chars
Example
dcloud s3 buckets temporary-key nameGenerated from the API description, the same one the API checks requests against and the CLI is built from.