Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Quickstart Debugging Java based AWS Lambda + Maven applications using Rookout

A sample application for debugging Java + Maven + AWS Lambda using Rookout.

Before following this guide we recommend reading the basic Java + Rookout guide

Integrate Rookout into your Java application

To integrate Rookout into your existing Java application, follow these steps:

  1. Add the following Maven dependencies to your pom.xml file:

NOTE: the repository is taken from the nuiton repository - (

Make sure you reference the following repository:

  1. Create an xml file in the project's root directory as a Descriptor for maven assembly plugin, or use a pre-defined descriptor:
<assembly xmlns="" xmlns:xsi="" xsi:schemaLocation="">
  1. Call LoadRook() from your main() function to load the Rookout SDK. Make sure to import com.rookout.rook.API.
import com.rookout.rook.API;

public class TestLambda implements RequestHandler<Object, String> {
    public String handleRequest(Object myCount, Context context) {

		// Your awesome code here :)
  1. Set your Rookout Token ('ROOKOUT_TOKEN') as an environment variable

Run your application

  1. Deploying your function :

    • As a Zip package: use the mvn package command to package everthing within one java-aws-lambda-maven-1.0-SNAPSHOT-jar-with-dependencies.jar file.

    • Using AWS CLI : Create a new Lambda function and update it as follows:

      aws lambda create-function \
                  --region <REGION> \
                  --function-name rookout_lambda_test \
                  --zip-file fileb:// \
                  --role <ROLE-ARN> \
                  --handler TestLambda.TestLambda::handleRequest \
                  --runtime java8 \
      	    --timeout 25 \
      	    --memory-size 400 \
                  --environment Variables="{ROOKOUT_TOKEN=<org_token>,ROOKOUT_ROOK_TAGS=lambda}" 

      If you do not have access to aws-cli, you can do this from the AWS console and follow the Amazon Documentation

    • Using Cloud9 IDE integrated tools.

  2. Go to and start debugging !

You can’t perform that action at this time.