The lambda function is not functioning as expected and I would like to debug it on IDE , Intellij IDEA . I have the source code , libraries ( as a part of the downloaded deployment package) and template.yaml (SAM file). I tried to do some research on how to run this function locally , in vain. Any guidance is appreciated.
Asked
Active
Viewed 76 times
0
-
1Possible duplicate of [How to test aws lambda functions locally](https://stackoverflow.com/questions/33884968/how-to-test-aws-lambda-functions-locally) – M. Prokhorov May 29 '19 at 10:09
-
Just for your information, there is this web-based IDE SLAppForge Sigma which streamlines the development, testing and deployment of serverless applications https://sigma.slappforge.com/ – Udith Gunaratna May 29 '19 at 10:10
-
You can also debug using cloudwatch logs. See https://docs.aws.amazon.com/lambda/latest/dg/java-logging.html – Hans-Eric Lippke May 29 '19 at 16:58
1 Answers
0
One of the ways you can test your AWS Lambda code locally,
is by using the ServerlessFramework and the Serverless-Offline plugin
Using Serverless Framework will also help you for creating the Infra you may require for deploying the functions to any of the major Cloud vendors including AWS.
You will need to maintain a serverless.yaml file which gets created for you when you create a serverless framework template.
You can follow these reference links -
1. https://serverless.com/framework/docs/providers/aws/guide/quick-start/
2. https://serverless.com/framework/docs/providers/aws/guide/serverless.yml/

Dev1ce
- 5,390
- 17
- 90
- 150