diff --git a/backend/src/services/cdn/aws-s3/AWSS3.cdn.service.ts b/backend/src/services/cdn/aws-s3/AWSS3.cdn.service.ts index 9b30c58..bd0dd31 100644 --- a/backend/src/services/cdn/aws-s3/AWSS3.cdn.service.ts +++ b/backend/src/services/cdn/aws-s3/AWSS3.cdn.service.ts @@ -1,6 +1,7 @@ import ICDNService from "@/services/cdn/cdn.service" import { S3Client, PutObjectCommand, DeleteObjectCommand } from "@aws-sdk/client-s3" import { ImageFormat } from "@aapc/types" +import * as process from "process"; export default class AWSS3CDNService implements ICDNService { private readonly bucketName: string @@ -11,7 +12,8 @@ export default class AWSS3CDNService implements ICDNService { this.bucketRegion = "us-east-1" this.bucketName = bucketName this.s3 = new S3Client({ region: this.bucketRegion }) - console.log(this.bucketName) + console.log(process.env.AWS_ACCESS_KEY_ID) + console.log(process.env.AWS_SECRET_ACCESS_KEY) this.s3.config.credentials().then(r => console.log(r)) }