简体   繁体   English

Eclipse AWS Lambda 错误:在您的项目根目录中找不到 Serverless.template

[英]Eclipse AWS Lambda Error : No Serverless.template found in your project root

I have created AWS Lambda Project in Eclipse using Eclipse AWS Plugin's "New AWS Lambda Java Project".我使用 Eclipse AWS 插件的“新 AWS Lambda Java 项目”在 Eclipse 中创建了 AWS Lambda 项目。 The project is created successfully and I can perform mvn install as well.项目创建成功,我也可以执行 mvn install 了。

However, when I right click and choose "Deploy Serverless Project", it shows an error box as below但是,当我右键单击并选择“部署无服务器项目”时,它会显示如下错误框

No Serverless.template found in your project root

在此处输入图像描述

I am using Eclipse Luna.我正在使用 Eclipse Luna。 Could anyone please help?有人可以帮忙吗? I searched on internet but didn't find any relevant answers.我在互联网上搜索但没有找到任何相关答案。

I would consider this is a bug with Eclipse AWS plugin, since this happens when you create a "Lambda Project", but try to deploy it as "Serverless Project".我认为这是 Eclipse AWS 插件的错误,因为当您创建“Lambda 项目”但尝试将其部署为“无服务器项目”时会发生这种情况。

To deploy your Lambda function, you can:要部署您的 Lambda 函数,您可以:

  1. Right-click in lambda in your Project Explorer (or in code window)在项目资源管理器(或代码窗口)中右键单击 lambda
  2. Choose Amazon Web Services / AWS Lambda选择Amazon Web Services / AWS Lambda
  3. Choose Upload function to AWS Lambda .选择Upload function to AWS Lambda

截屏

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无服务器 AWS Lambda CORS 错误 - Serverless AWS Lambda CORS Error AWS lambda 无服务器中不存在此类文件错误 - AWS lambda no such file exists error in serverless 无服务器 SaaS 系统的 AWS 参考解决方案 - 错误:找不到模板文件 - template.yml - AWS reference solution for a serverless SaaS system - Error: Template file not found - template.yml AWS Lambda 无服务器项目的 NodeJS 版本 14 和 15 之间的斗争 - Struggle between NodeJS version 14 and 15 for AWS Lambda serverless Project 带有 AWS Lambda 错误“找不到模块”的无服务器框架 - Serverless Framework with AWS Lambda error "Cannot find module" 使用 AWS 保护无服务器后端 Lambda - Secure a serverless backend with AWS Lambda 使用无服务器框架将 Python package 部署到 AWS lambda 时出错 - Error deploying Python package to AWS lambda using Serverless framework AWS NodeJS 无服务器 - 部署项目时出现 Zip 错误 - AWS NodeJS Serverless - Zip Error When Deploying Project 在定义单个 AWS::Serverless::Function 的 SAM 模板中指定多个 API 阶段和 Lambda 别名 - Specify multiple API stages and Lambda Aliases in SAM template defining a single AWS::Serverless::Function AWS Lambda function on Java with Serverless framework and GraalVM - AWS Lambda function on Java with Serverless framework and GraalVM
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM