dcloud s3 buckets temporary-key

A temporary key for this bucket only, for N hours, acting as you

IAM s3:CreateTemporaryCredentialsChanges state

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

    string

    Also accepted as --name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/

Flags

  • --hoursOptional

    number

    How long the key lives, 0.25 to 12 hours; default 1

    Constraints: 0.25-12

  • --accessOptional

    enum

    read (default): list and download; readwrite: also upload and delete

    One of: read, readwrite

  • --prefixOptional

    string

    Only objects under this key prefix, e.g. uploads/

    Constraints: max 512 chars

  • --descriptionOptional

    string

    What the key is for

    Constraints: max 200 chars

Example

dcloud s3 buckets temporary-key name

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