Cloud storage

Fabricates stores uploaded and generated data in cloud storage. You can use either:

  • Amazon S3 (or any other Amazon S3-compatible storage)

  • Azure Blob Storage

  • Google Cloud Storage

  • Cloudflare R2

  • Backblaze B2

Identifying the cloud storage platform

To indicate which cloud storage platform to use, in .env, set the following environment variable:

FABRICATE_BLOCK_STORAGE_SERVICE=("amazon", "azure", or "google")

S3 bucket

To use Amazon S3 to store generated data, in .env, set:

FABRICATE_BLOCK_STORAGE_SERVICE="amazon"

To set up the S3 bucket:

  1. Create an S3 bucket in the AWS Region closest to where Fabricate will run. We recommend that you set the bucket name to fabricate.

  2. To enable Fabricate to upload files to this S3 bucket, either:

    • In .env, configure FABRICATE_AWS_ACCESS_KEY_ID and FABRICATE_AWS_SECRET_ACCESS_KEY.

    • Assign an IAM role to the EC2 instances on which Fabricate runs. The role must be able to write to the S3 bucket. For information on how to do this, go to Enable S3 access from EC2 by IAM role.

  3. In .env, set:

Azure Blob Storage

To use Azure Blob Storage to store generated data, in .env, set:

To configure the storage location and credentials, set:

Google Cloud Storage

To use Google Cloud Storage to store generated data, in .env, set:

To configure the storage location and credentials, set:

Last updated

Was this helpful?