简体   繁体   中英

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". The project is created successfully and I can perform mvn install as well.

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. 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".

To deploy your Lambda function, you can:

  1. Right-click in lambda in your Project Explorer (or in code window)
  2. Choose Amazon Web Services / AWS Lambda
  3. Choose Upload function to AWS Lambda .

截屏

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM