shellphone.app/integrations/aws-s3.ts
2021-10-13 21:42:23 +02:00

12 lines
369 B
TypeScript

import { Credentials, S3 } from "aws-sdk";
import { getConfig } from "blitz";
const { serverRuntimeConfig } = getConfig();
const credentials = new Credentials({
accessKeyId: serverRuntimeConfig.awsSes.accessKeyId,
secretAccessKey: serverRuntimeConfig.awsSes.secretAccessKey,
});
export const s3 = new S3({ region: serverRuntimeConfig.awsS3.region, credentials });