Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 809 Bytes

File metadata and controls

22 lines (12 loc) · 809 Bytes

Moesif AWS Lambda Example for Node.js

Moesif is an API analytics platform. moesif-aws-lambda-nodejs is a middleware that logs API calls to Moesif for AWS Lambda.

This example is an express application with Moesif's API analytics and monitoring integrated.

How to run this example.

Create a new AWS Lambda function that is trigged by AWS API Gateway

Upload this zip, when prompted for handler, enter index.handler

You will also want to add an environment vairable MOESIF_APPLICATION_ID with the value being your application id from your Moesif account

Go to the URL for the API gateway such as https://XXXXXX.execute-api.us-west-2.amazonaws.com/default/my-test-function

The API Calls should show up in Moesif.