Skip to content

S3StorageServiceLive

const S3StorageServiceLive: Layer<StorageService, ConfigError, never>

Defined in: packages/core/src/utils.ts:234

Effect layer that provides a live implementation of StorageService using S3. This layer can be used to inject the S3 storage service into your Effect application.

const program = Effect.gen(function* () {
const storage = yield* StorageService;
yield* storage.upload("my-bucket", "file.txt", fileData);
}).pipe(Effect.provide(S3StorageServiceLive));