简体   繁体   English

如何将 AWS 无服务器应用程序项目更改为仅部署为 lambda 功能? (没有API网关和云编队)

[英]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.

相关问题 如何在本地部署和测试在.Net Core中创建的AWS无服务器应用程序(API网关)? - How to Deploy and test AWS serverless application (API Gateway) created in .Net Core locally? 如何将无服务器代码部署到AWS API Gateway中的阶段 - How to deploy a serverless code into a stage in AWS API Gateway 如何在openFaaS中部署无服务器应用程序,类似于带有S3的AWS lambda - How to deploy a serverless application in openFaaS similar to AWS lambda with S3 如何迁移到无服务器(云形成)到 AWS CDK(云开发工具包) - How to migrate to Serverless (Cloud Formation) to AWS CDK (Cloud Development Kit) 使用 AWS CDK 部署无服务器应用程序(s3、api 网关、lambda、认知...)的最佳实践 - Best Practices to deploy serverless app (s3, api gateway, lambda, cognito...) with AWS CDK 如何将 Hapi.js API 部署到 AWS Lambda 和 API 网关? - how to deploy a Hapi.js API to AWS Lambda and API gateway? AWS获取用于云形成的API网关URL - AWS Get API Gateway URL for Use in Cloud Formation 使用 Typescript 和 MySql 的无服务器框架连接 AWS API Gateway 、Lambda 和 Cognito 的简单项目 - Serverless Framework with Typescript and MySql simple Project to connect AWS API Gateway ,Lambda and Cognito 如何使用 AWS Cloudformer 为现有 API 网关创建云形成模板? - How can I use AWS Cloudformer to create a cloud formation template for an existing API Gateway? Lambda API 结果作为在 Cloud Formation 中创建 AWS 资源的条件 - Lambda API result as a condition to create AWS resource in Cloud Formation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM