How To Create, Debug And Deploy AWS Serverless Application With Java Using Intellij Idea

Introduction

IntelliJ IDEA is the most popular IDE for Java. So it’s useful if we can develop, debug, and deploy AWS Serverless Application with IntelliJ IDEA.
This article will guide step by step from creating and debugging to deploying AWS Serverless Application.

Requirements

Before you can use IntelliJ IDEA to develop, test, analyze, debug, and deploy AWS Serverless Application, you must install the following tools:

Creating an AWS Serverless Application

This is a step-by-step guide to creating a new AWS Serverless Application

You can select which build tool for the project: Maven or Gradle

Project structure after creating successfully

Debugging the Local Version of an AWS Lambda Function

You can debug by doing one of the following:
1. In the code file that contains the function handler choose the Lambda icon in the gutter next to the function handler. Choose Debug ‘[Local]’:

2. Open the project’s template.yaml file. Choose the Run icon in the gutter next to the function’s resource definition, and then choose Debug ‘[Local]’.

Finally, complete the Edit Configuration dialog box if it is displayed, and then choose Debug. Using API Gateway proxy event to test function.

SAM will fetch lambci/lambda:java8 Docker container image to run the function locally.

You can add a breakpoint to begin debugging the application.

Deploying an AWS Serverless Application

Select the AWS profile which you will use to deploy. Note: you can config the AWS profile by using AWS CLI. Right-click the project’s template.yaml file. Then choose Deploy Serverless Application.

Complete the Deploy Serverless Application dialog box, and then choose Deploy.

After you deploy it, you can go to AWS Console to run/test the AWS Lambda function.

Conclusion

By using IntelliJ IDEA to create, debug and deploy AWS serverless applications, building AWS serverless applications will become easier and the time for troubleshooting issues will be reduced by debugging locally.

Nov 13, 2019

Similar articles

Free local AWS emulators in 2026

Free Local AWS Emulators in 2026: What Each One Runs and Where Each One Stops

LocalStack's free edition ended in March 2026, and on 11 November AWS shipped its own emulator. Where each local option runs, what it costs and where it stops.

Lambda in 2026, choosing compute, execution mode and workflow

AWS Lambda in 2026: Choosing Compute, Execution Mode and Workflow

Lambda now has three compute primitives, two compute types for Event Functions, several execution modes and three ways to run a workflow. Two comparison tables, the limits that decide each choice, and a simulated cost example for durable functions and Step Functions.

AWS Lambda 90 minute timeout: what it changes and what it does not

Lambda's function timeout went from 15 minutes to 90 minutes on 9 September 2026, for async and event source mapping invocations on Managed Instances. Here is what that breaks in the old serverless decision rule, the five checks we now run before moving a job off containers, and the one workload we decided not to move.