Skip to content

adjohn/serverless-iopipe-layers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serverless-iopipe-layers

A Serverless plugin to add IOpipe observability using AWS Lambda Layers without requiring a code change.

Features

  • Supports Node.js and Python runtimes (more runtimes to come)
  • No code change required to enable IOpipe
  • Bundles all of IOpipe's observability plugins in a single layer

Install

With NPM:

npm install --save-dev serverless-iopipe-layers

With yarn:

yarn add --dev serverless-iopipe-layers

Add the plugin to your serverless.yml:

plugins:
  - serverless-iopipe-layers

Get a free IOpipe token and plug it into your serverless.yml:

custom:
  iopipe:
      token: your-iopipe-token-here

Deploy and you're all set.

Usage

This plugin wraps your handlers without requiring a code change. If you're currently using IOpipe, you can remove the wrapping code you currently have and this plugin will do it for you automatically.

Config

The following config options are available via the iopipe section of the custom section of your serverless.yml:

token (required)

The IOpipe token to use.

debug (optional)

Whether or not to enable debug mode. Must be a boolean value.

Supported Runtimes

This plugin currently supports the following AWS runtimes:

  • nodejs6.10
  • nodejs8.10
  • python2.7
  • python3.6
  • python3.7

Limitations

  • Doesn't currently support local invocation

License

Apache 2.0

About

A Serverless plugin to add IOpipe observability using AWS Lambda Layers without requiring a code change 🎂

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 83.2%
  • Shell 14.1%
  • JavaScript 1.4%
  • Python 1.3%