Skip to main content
Each disk keeps its own list of who can use it. From the SDKs you can create disk tokens for mounting, authorize an AWS IAM principal, create S3 credentials for S3 clients, and limit mounts to known IP addresses. For how these credentials relate to API keys, see authorization.

Disk tokens

A disk token lets a client mount one disk. createToken returns the token once, with an identifier for removing it later.
Mount with the token by setting ARCHIL_MOUNT_TOKEN. See token-based disk authorization.

IAM principals

To let servers in AWS mount the disk with their IAM identity, add the role or user ARN:
disk.authorizedUsers (authorized_users in Python) lists everyone who can use the disk.

S3 credentials

S3 credentials are an access key pair for AWS SDKs, the AWS CLI, and other S3 clients. They reach every file on the disk, so keep them on servers and give browsers share links or presigned URLs instead. The secret key is returned once. Set readOnly to allow only reads, and ttl (for example "24h", up to "8760h") or expiresAt to make the keys expire.
Use them with the S3-compatible API. To read and write files from the SDKs, use the object methods, which authenticate with your API key.

IP allowlist

An allowlist limits mounts to clients connecting from the listed IP addresses or CIDR ranges. An empty list allows every address. Changes can take up to a minute to apply everywhere.
To create a disk with an allowlist already in place, pass allowedIps (allowed_ips in Python) to createDisk.