Effectively running Java on ServerlessIntelliJ1 min

For Java-based Lambda functions, you can use IntelliJ for development, testing, and deployments.

AWS Toolkit for IntelliJ provides mechanisms to execute and test an AWS Lambda function locally. If you are using AWS SAM for your serverless project, you can easily run/debug the Lambda functions using the IDE.

You need to configure the test as below. You can get to this page by running Lambda function from the SAM template.yaml:

IntelliJConfig

Make sure Docker is running locally before debugging/running

Now, in order to debug the Lambda function, you can run the configuration like you would do for any JUnit test:

IntelliJDebug

Behind the scenes, IntelliJ uses the local testing capabilities of AWS SAM.

With AWS Toolkit, you can do a lot more. Notably, the following features would be useful while building Serverless applications in IntelliJ:


Created by:

Dhiraj Mahapatro
Dhiraj MahapatroPrincipal Specialist SA, Serverless, AWS.