dcloud s3 temporary-credentials create

Create temporary S3 credentials (15 minutes to 12 hours, default 1 hour)

IAM s3:CreateTemporaryCredentialsChanges state

Returns accessKeyId, secretAccessKey, sessionToken and expiresAt once. Every S3 request must carry the token as a signed x-amz-security-token (AWS_SESSION_TOKEN in the AWS CLI and SDKs). They are never listed and cannot be revoked; they expire.

Synopsis

dcloud s3 temporary-credentials create [flags]

Flags

  • --duration-secondsOptional

    number

    Lifetime in seconds, 900–43200 (default 3600)

    Constraints: integer, 900-43200

  • --descriptionOptional

    string

    What the credentials are for

    Constraints: max 200 chars

Example

dcloud s3 temporary-credentials create

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