Skip to main content

Storage

Expo Open OTA supports two storage solutions for hosting your update assets: Amazon S3 and Local File System. This guide will help you set up your storage solution and configure your server to use it.

note

The environment variables required for each storage solution are listed below, you can set them in a .env file in the root of the project or keep them in a safe place to prepare for deployment.

To enable Amazon S3 as your storage solution, you need to set the following environment variables:

.env
STORAGE_MODE=s3
AWS_REGION=your-region
S3_BUCKET_NAME=your-bucket-name

If your are not using AWS IAM roles, you also need to set the following environment variables:

.env
AWS_ACCESS_KEY_ID=your-access-key-id
AWS_SECRET_ACCESS_KEY=your-secret-access-key

You don't need to allow public read access to the assets, as the server will generate pre-signed URLs for the assets for CDN if configured. If CDN is not configured, the server will return the asset directly.