dcloud s3 buckets create-access-keyAn access key for this bucket: a service account, a policy limited to the bucket on that account, and a plain key
Permissions live on the account: the policy is attached to the service account, the key carries no limit. In one transaction; needs iam:CreateUser (for a new account), iam:CreatePolicy, iam:AttachUserPolicy, iam:CreateAccessKey, and the caller must be able to do every action the policy hands out on this bucket (403 otherwise, and nothing is made).
Synopsis
dcloud s3 buckets create-access-key name [flags]Arguments
<name>Requiredstring
Also accepted as
--name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/
Flags
--service-account-idOptionalstring
An existing service account to give the key to; omitted: a new one is made
Constraints: uuid
--service-account-nameOptionalstring
The new service account’s name; default <bucket>-access
Constraints: 1-64 chars, /^[a-z0-9_-]+$/
--accessOptionalenum
read: list and download; readwrite (default): also upload and delete
One of:
read,readwrite--prefixOptionalstring
Only objects under this key prefix, e.g. uploads/
Constraints: max 512 chars
--descriptionOptionalstring
What uses the key
Constraints: max 256 chars
--expires-in-daysOptionalnumber
Days until the key expires; default the organization’s default
Constraints: integer, 1-3650
Example
dcloud s3 buckets create-access-key nameGenerated from the API description, the same one the API checks requests against and the CLI is built from.