Skip to main content

tigris access-keys assign

Assign per-bucket roles to an access key. Pair each --bucket with a --role (Editor or ReadOnly), or use --admin for org-wide access.

Alias: a

Usage

tigris access-keys assign <id> [flags]
t3 keys a <id> [flags]

Flags

NameRequiredDefaultDescription
--bucket, -bNoBucket name (can specify multiple, comma-separated). Each bucket is paired positionally with a --role value
--role, -rNoRole to assign (can specify multiple, comma-separated). Each role pairs with the corresponding --bucket value. Options: Editor, ReadOnly
--adminNoGrant admin access to all buckets in the organization
--revoke-rolesNoRevoke all bucket roles from the access key

Examples

# Assign editor role to a bucket
tigris access-keys assign tid_AaBb --bucket my-bucket --role Editor

# Assign different roles to multiple buckets
tigris access-keys assign tid_AaBb --bucket a,b --role Editor,ReadOnly

# Grant admin access
tigris access-keys assign tid_AaBb --admin

# Revoke all roles
tigris access-keys assign tid_AaBb --revoke-roles