# S3 export to local MinIO (S3-compatible).
# Requires: docker compose up -d minio postgres
# Create bucket first: see dev/run_s3_export.sh or manually via MinIO console at http://localhost:9001
source:
type: postgres
url: "postgresql://rivet:rivet@localhost:5432/rivet"
exports:
- name: orders_chunked_s3
query: "SELECT id, user_id, product, quantity, price, status, notes, ordered_at, updated_at FROM orders"
mode: chunked
chunk_column: id
chunk_size: 100000
parallel: 1
format: parquet
destination:
type: s3
bucket: rivet-test
prefix: exports/orders/
region: us-east-1
endpoint: http://localhost:9000
access_key_env: MINIO_ACCESS_KEY
secret_key_env: MINIO_SECRET_KEY