Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.dockerignore
.gitignore
Dockerfile
Dockerfile.test
Jenkinsfile
README.md
index.js
package-lock.json
package.json
runTest.sh
serverless.yml

README.md

Quickstart for debugging Node.JS + AWS Lambda functions using Rookout and Serverless Framework

A sample application for debugging Node.JS + AWS Lambda functions using Rookout and Serverless Framework.

Before following this guide we recommend reading the basic Node + Rookout guide.

Rookout Integration Process

To integrate Rookout into your existing Serverless Framework Python Lambda app, follow these steps:

  1. Install the npm dependency rookout: npm install rookout

  2. Wrap your function with the Lambda wrapper which get the handler and optional rookout options:

const rookout = require('rookout/lambda');
const serverless = require('serverless-http');
const express = require('express');
const app = express();

app.get('/', function (req, res) {
  res.send('Hello World!');
});

module.exports.handler = rookout.wrap(serverless(app));
  1. Set Lambda environment for ROOKOUT_TOKEN to connect with the Rookout service.

Deploy your function

  1. `serverless deploy --region <YOUR_REGION> --ROOKOUT_TOKEN <YOUR_TOKEN>

  2. Go to app.rookout.com and start debugging!

You can’t perform that action at this time.