Skip to main content

tigris access-keys assign

Assign bucket roles to an access key.

Alias: a

Usage

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

Flags

NameRequiredDefaultDescription
--bucket, -bNoBucket name (can specify multiple)
--role, -rNoRole to assign (can specify multiple to pair with buckets). 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_mykey --bucket my-bucket --role Editor

# Assign read-only role to multiple buckets
tigris access-keys assign tid_mykey --bucket bucket1 --role ReadOnly --bucket bucket2 --role ReadOnly

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

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