HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🤩
개발
/
NodeJs
NodeJs
/
Serverless Framework
Serverless Framework
Serverless Framework

Serverless Framework

Serverless offline 플러그인

  • 해당 플러그인 상태에서는 api gateway의 Content-Type이 default로 application/json이기에, 다른 형태의 request가 오면 문제가 생김!
    • 정확히는 form data(multipart/form-data)를 보내는데, 엑셀파일이 multer를 거치면서 이상하게 바뀌었음. 그래서 읽히지가 않음 (참고 링크)
  • request 날릴 때 Content-Type을 명시해주어야함 [ 문서 참고 ]
 

Serverless framework

configure credential
[ Serverless docs ] config credentials
deploy particular profile
sls --aws-profile suku deploy : use —aws-profile option

TroubleShooting

[ Serverless Docs ] • Lambda Function URLs
Error: UPDATE_ROLLBACK_IN_PROGRESS: lgu-vo-backend-stg (AWS::CloudFormation::Stack) Unable to retrieve FunctionUrl attribute for AWS::Lambda::Url, with error message The resource you requested does not exist. (Service: Lambda, Status Code: 404, Request ID: 6ed02dd0-6bc0-4a8b-b413-dc8ded6da4a9)
functions: adminWeb: handler: ./lambda/web.handler # url: true
  • 왜 해당 resource를 찾지 못하는지 알수가 없으나.. 아마 AWS::Lambda::Url 타입의 리소스가 생성이 잘 안되는가봄. url : true가 코멘트 처리되니까 배포가 잘 되는 것을 보니
    • 추측 : 보안 팀에서 AWS 계정에 보안 처리를 많이 걸어두어서 url: true를 해도 Lambda Instance에 대한 http api 가 생성이 안되나봄. 안되어서 resource를 못찾는것 같음