Deployment and upgradesOfficial documentation7 min readDeployment and upgrades

Configure AWS S3 for FastGPT Storage

AWS S3 storage integration for FastGPT uses S3-compatible environment variables identical to those used for MinIO.

Overview

AWS S3 storage integration for FastGPT uses S3-compatible environment variables identical to those used for MinIO. For production deployments, you must pre-create two dedicated buckets: one public and one private. The public bucket must be configured with public-read access permissions, or restricted access via CloudFront or a custom domain, per your access control requirements.

Configuration Reference

The following environment variables control AWS S3 storage behavior for FastGPT. All required variables must be set explicitly; optional variables use the listed default values if omitted.

Environment VariableRequiredDefault ValueExample Value
STORAGE_VENDORYesNoneaws-s3
STORAGE_REGIONYesNoneap-southeast-1
STORAGE_ACCESS_KEY_IDYesNoneyour_access_key
STORAGE_SECRET_ACCESS_KEYYesNoneyour_secret_key
STORAGE_PUBLIC_BUCKETYesNonefastgpt-public
STORAGE_PRIVATE_BUCKETYesNonefastgpt-private
STORAGE_S3_ENDPOINTYesNonehttps://s3.ap-southeast-1.amazonaws.com
STORAGE_S3_FORCE_PATH_STYLENofalsefalse
STORAGE_S3_MAX_RETRIESNo33

Full Example Configuration

The complete set of environment variables for AWS S3 storage is shown below. Replace example values with your actual credentials and bucket details:

STORAGE_VENDOR=aws-s3
STORAGE_REGION=ap-southeast-1
STORAGE_ACCESS_KEY_ID=your_access_key
STORAGE_SECRET_ACCESS_KEY=your_secret_key
STORAGE_PUBLIC_BUCKET=fastgpt-public
STORAGE_PRIVATE_BUCKET=fastgpt-private
STORAGE_S3_ENDPOINT=https://s3.ap-southeast-1.amazonaws.com
STORAGE_S3_FORCE_PATH_STYLE=false
STORAGE_S3_MAX_RETRIES=3

Source: FastGPT official source

Applicability and version scope

Use this page for the documented Deployment and upgrades scenario. Confirm the FastGPT, dependency, API, and deployment versions in the official source before applying a change.

Safety guardrails

Use [REDACTED_CREDENTIAL] for credentials and private data. Confirm the documented environment and version before review.

Rollback guidance

Restore the prior technical-content authority snapshot. Restore saved configuration and data snapshots, then repeat the smallest verification scenario.