Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
HuzzNZ committed May 31, 2024
1 parent e97e2cc commit 060ea8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/services/cdn/aws-s3/AWSS3.cdn.service.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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))
}

Expand Down

0 comments on commit 060ea8a

Please sign in to comment.