[英]How to change an AWS Serverless application project to just deploy as lambda functions? (No API gateway and cloud formation)
Originally, we created the project as WebAPI, and were deploying as API Gateway... Is there a way I could just change the project's deployment to deploy only as a lambda function and not anymore with API gateway and cloud formation? Originally, we created the project as WebAPI, and were deploying as API Gateway... Is there a way I could just change the project's deployment to deploy only as a lambda function and not anymore with API gateway and cloud formation?
I am trying not to redo the whole project.我试图不重做整个项目。
Yep just don't add HTTP events to your functions.是的,只是不要将 HTTP 事件添加到您的函数中。
functions:
postRoute:
handler: handler.postRoute
events:
-
http:
path: /someRoute
method: post
cors: true
anotherRoute:
handler: handler.anotherRoute
events:
-
http:
path: '/path'
method: get
cors: true
authorizer: // NO HTTP ROUTE
handler: handler.authorizer
resultTtlInSeconds: 0
lambdaLogger: // NO HTTP ROUTE
handler: handler.lambdaLoggerHandler
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.