Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @pulumi/epsagon with all npm packages installed. Try it out:

var epsagon = require("@pulumi/epsagon")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@pulumi/epsagon v0.0.5

This pacakge provides Epsagon integration with Pulumi programs.

Pulumi Epsagon integration

This package provides Epsagon integration with Pulumi programs. When imported into a Pulumi program, any serverless functions generated from JavaScript callbacks in the Pulumi program will automatically be wrapped with Epsagon Lambda Wrapper.

const aws = require("@pulumi/aws");
const pulumi = require("@pulumi/pulumi");

// Load the Pulumi Epsagon integration package
const epsagon = require("@pulumi/epsagon");
epsagon.install(pulumi, { appName: "my-example" });

// Create a bucket and a function to log new object uploads
const bucket = new aws.s3.Bucket("my-bucket");
bucket.onObjectCreated("onNewObject", async (ev) => console.log(ev));
exports.bucketName = bucket.bucket;


After importing @pulumi/epsagon into a Pulumi program, you will need to provide an Epsagon token via a Pulumi configuration secret. You can get your token on the "Install" page of the Epsagon console for your project.

$ pulumi config set --secret epsagon:token <your token here>
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free