AWS Lambda@Edge allows you to replicate Lambda functions to Cloudfront edge locations. You can use IOpipe with Lambda@Edge, with the proper configuration.

Use inline token configuration

Because Lambda@Edge does not support environment variables, you must configure your function by passing token in the configuration object, rather than using the IOPIPE_TOKEN environment variable.

const iopipe = require('iopipe')({
  token: 'xxx',
});

// wrap your lambda handler as usual
exports.handler = iopipe((event, context) => {
  // your code here
  context.succeed('Wow!');
});

When your lambdas are invoked at the edge, you'll see them in your IOpipe dashboard with the region in which they were invoked at the front of the ARN:

If you see any incorrect or outdated information, give us a shout at support@iopipe.com or Slack.

Did this answer your question?