전체 글
-
s3에 있는거 삭제하기AWS/S3 2023. 10. 10. 14:23
출처 - https://songsong.dev/entry/S3%EC%97%90-%ED%8C%8C%EC%9D%BC%EC%9D%84-%EC%97%85%EB%A1%9C%EB%93%9C%ED%95%98%EB%8A%94-%EC%84%B8-%EA%B0%80%EC%A7%80-%EB%B0%A9%EB%B2%95 S3에 파일을 업로드하는 세 가지 방법 AWS SDK for Javascript v3을 이용해 next.js에서 S3에 파일 업로드를 하는 다양한 방법을 알아보자! 개요 기본 참고 자료 링크 AWS 가이드(S3 Upload) AWS 가이드(Presigned URL) 유튜브(Sam Meech-Ward) 링크로 소개한 songsong.dev https://velog.io/@chaerim1001/NestJS-AWS-S..
-
Nestjs-typeorm에서 트랜잭션 처리Nest.js 2023. 10. 10. 12:45
대가리 진짜 아프다... 분명 아래 출처대로 했을때 잘 되다가 다른거 작업하고 오니까 다시 또 안된다 | TypeError: Cannot read properties of undefined (reading 'delete') | at FeedsRepository.delete (/app/src/repository/Repository.ts:404:29) | at FeedsRepository.deleteFeed (/app/src/models/repositories/feeds.repository.ts:70:41) | at FeedsService.deleteFeed (/app/src/api/feeds/feeds.service.ts:77:6) | at processTicksAndRejections (node:inte..
-
백엔드에서 s3에 이미지 업로드 후 클라에서 접속시 에러 AccessDeniedAWS/S3 2023. 10. 6. 15:09
s3:GetObject 있는 버킷 정책에 아래 이미지 경로 추가해줘서 허용해준다. { "Sid": "eb-af163bf3-d27b-4712-b795-d1e33e331ca4", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::655111786396:role/aws-elasticbeanstalk-ec2-role" }, "Action": [ "s3:ListBucket", "s3:ListBucketVersions", "s3:GetObject", "s3:GetObjectVersion" ], "Resource": [ ... "arn:aws:s3:::[버킷 이름 + /특정 폴더]/*"//이 새우 이미지 경론데 추가해줘야함 ... ] }, 해줬는데도 똑같이 권한 오류 ..
-
nestjs에서 multer, multer-s3, aws-sdk/client-s3로 멀티 업로드Nest.js 2023. 10. 5. 21:11
$ npm i aws-sdk/client-s3 $ npm i multer $ npm i multer-s3 $ npm i @types/multer-s3 --save-dev 진짜 4시간 걸린 삽질 끝에 성공 했는데 하면서 발생했던 치명적 에러 TypeError: (0 , multers3.default) is not a function 나를 괴롭혔던 에러 | /app/src/common/builders/multer.builder.ts:60 | contentType: multerS3.AUTO_CONTENT_TYPE, | ^ | TypeError: Cannot read properties of undefined (reading 'AUTO_CONTENT_TYPE') | at MulterBuilder.build (/..
-
-
Nestjs에서 mail 보내기Nest.js 2023. 8. 16. 20:20
https://www.npmjs.com/package/@nestjs-modules/mailer @nestjs-modules/mailer NestJS - a mailer module (@mailer). Latest version: 1.9.1, last published: a month ago. Start using @nestjs-modules/mailer in your project by running `npm i @nestjs-modules/mailer`. There are 54 other projects in the npm registry using @nestjs-modules/mail www.npmjs.com https://re-man.tistory.com/entry/AI-NestJS%EC%97%90..
-