Amazon S3
IAM Role (Recommended)
Cross-account IAM roles let Avala access your bucket using temporary credentials — no long-lived keys to rotate or leak. Avala assumes a role in your AWS account using STS AssumeRole with an external ID for confused deputy protection.1. Get Your Setup Info
Go to Mission Control → Settings → Storage → Add Storage → Amazon S3. Select IAM Role as the authentication method. You will see two values:- Avala AWS Account ID — the account that will assume your role
- External ID — a unique identifier for your organization (used in the trust policy)
If your account belongs to multiple organizations, you must pass the
organization parameter (your organization’s slug) to all storage config API calls. Single-organization accounts can omit it.2. Create an IAM Role
In your AWS account, create an IAM role with the following trust policy. ReplaceAVALA_ACCOUNT_ID and EXTERNAL_ID with the values from Step 1.
3. Attach a Permissions Policy
Attach an inline or managed policy that grants Avala access to your bucket:s3:PutObject.
Replace your-bucket-name with your actual bucket name.
4. Connect in Mission Control
- Go to Mission Control → Settings → Storage.
- Click Add Storage and select Amazon S3.
- Select IAM Role as the authentication method.
- Enter the Role ARN (e.g.,
arn:aws:iam::123456789012:role/AvalaStorageAccess). - Enter your Bucket Name and Region.
- Click Test Connection to verify access.
- Save the configuration.
Access Key (Legacy)
You can also authenticate with long-lived AWS access keys. This method is still supported but not recommended — IAM roles are more secure because credentials are temporary and automatically rotated.- Create an IAM user with programmatic access.
- Attach the same permissions policy shown above.
- In Mission Control, select Access Key as the authentication method.
- Enter the Access Key ID and Secret Access Key.
- Click Test Connection and save.
CORS Configuration
The browser-based editor loads your objects directly from your bucket, so the bucket must allow cross-origin requests fromhttps://avala.ai. Add this CORS rule:
Why the extra
ExposeHeaders? Large files — MCAP recordings especially — are streamed with HTTP range requests rather than downloaded whole. The browser can only read a response header that is explicitly exposed, and the range machinery needs Content-Range, Content-Length and Accept-Ranges. Exposing only ETag is enough for images, but MCAP episodes will fail to open.Google Cloud Storage
Service Account
Create a service account that Avala can use to access your bucket:- In the Google Cloud Console, navigate to IAM & Admin > Service Accounts.
- Create a new service account (e.g.,
avala-storage-reader). - Grant the following roles on the bucket:
roles/storage.objectViewer— read access to objectsroles/storage.legacyBucketReader— list objects in the bucket
- If Avala should write exports to the bucket, also grant
roles/storage.objectCreator. - Download the JSON key file for the service account.
CORS Configuration
The browser-based editor loads your objects directly from your bucket, so the bucket must allow cross-origin requests fromhttps://avala.ai. Save the following as cors.json:
your-bucket-name with your actual bucket name. (The older gsutil cors set cors.json gs://your-bucket-name still works.)
Connect in Mission Control
- Go to Mission Control > Settings > Storage.
- Click Add Storage and select Google Cloud Storage.
- Enter your Bucket Name.
- Upload the Service Account JSON key file.
- Click Test Connection to verify access.
- Save the configuration.
Cloudflare R2
R2 speaks the S3 API, so Avala reads it through the same client as Amazon S3. Two things differ, and both matter when you connect a bucket:- There is no region. R2 is a single global namespace. Avala signs with the region string
auto; you will not be asked for one. - There is no CloudFront, Transfer Acceleration or IAM role. Those are AWS features with no Cloudflare equivalent, and Avala refuses them on an R2 configuration rather than storing a setting that would silently produce URLs pointing at a host that does not serve your bucket.
Create an R2 API token
- In the Cloudflare dashboard, go to R2 > Manage R2 API Tokens.
- Create an Account API token with Object Read permission on the bucket Avala should read. Add Object Write only if Avala should write exports back.
- Copy the Access Key ID and Secret Access Key. Cloudflare shows the secret once.
- Note your Account ID — it is the 32-character hex string in the dashboard URL and on the R2 overview page.
CORS Configuration
The browser-based editor loads objects directly from your bucket, so R2 must allow cross-origin requests fromhttps://avala.ai. In the Cloudflare dashboard, open your bucket, go to Settings > CORS Policy, and add:
Public buckets
If your bucket is public, supply the public base URL as well — either the bucket’sr2.dev subdomain or a custom domain you have attached. Avala cannot derive it: unlike S3, an R2 bucket has no predictable public hostname, and the S3-compatible endpoint used for signing does not serve public reads.
Leave it blank for private buckets, which are served through presigned URLs.
Connect in Mission Control
- Go to Mission Control > Settings > Storage.
- Click Add Storage and select Cloudflare R2.
- Enter your Cloudflare account ID (32 hex characters).
- Enter the Bucket Name, and a Prefix if Avala should only see part of the bucket.
- Enter the R2 access key ID and secret access key.
- For a public bucket, enter the public base URL.
- Click Test Connection to verify access.
- Save the configuration.
Egress. Cloudflare does not charge for data transfer out of R2. If you serve large volumes of imagery or recordings to annotators, this is usually the difference that matters between R2 and S3 — not the per-GB storage price.
Storage Configuration Options
Once a bucket is connected, you can configure it in Mission Control:Uploading Data from Connected Buckets
After connecting a bucket, you can create datasets from its contents:- Create a new dataset in Mission Control.
- Select Import from Cloud Storage as the data source.
- Browse or search the connected bucket for the files or folder you want.
- Select the assets and confirm the import.