Browse modulesStorageFunctions
Function: createS3Client()
function createS3Client(config: S3StorageConfig): S3Client;Defined in: server/storage/s3-client.ts:18
Construct an S3Client from resolved S3StorageConfig.
- In production against real S3, omit
credentialsso the AWS SDK resolves them from the default provider chain (ECS task role / EC2 instance profile / env vars). No static keys ship in code. - For local development, set
endpoint(e.g.http://localhost:9000) andcredentials(minioadmin/minioadmin) to talk to MinIO.forcePathStyleis required for MinIO and is defaulted on when an endpoint is set.
requestChecksumCalculation: "WHEN_REQUIRED" opts out of AWS SDK v3's default
CRC32 checksum headers, which MinIO rejects with 501 Not Implemented.
Parameters
| Parameter | Type |
|---|---|
config | S3StorageConfig |
Returns
S3Client