• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
isudzumi

Serverless Plugin Lambda Edge

by

Plugin for Lambda@Edge, just associating your Lambda function with existing CloudFront distribution via AWS SDK

19.1k
5
  1. Serverless Plugin Lambda Edge

serverless-plugin-lambda-edge

npm version publish

serverless plugin for Lambda@Edge with using aws-sdk instead of CloudFormation.

This makes it possible for users to associate Lambda functions to your currently working Cloudfront.

Usage

  1. Install the plugin
npm install --save-dev serverless-plugin-lambda-edge

or

serverless plugin install -n serverless-plugin-lambda-edge
  1. Put the plugin name in your serverless.yml
plugins
  - serverless-plugin-lambda-edge
  1. Configure you Lambda@Edge properties
functions
  someFunctionAssociatedWithCloudfront
    name: some-handler-
    handler: function.handler
    eventType: viewer-request    # request/response event type (viewer-request, viewer-response, origin-request, origin-response)
    
custom
  - cloudFrontId: XXX    # your Cloudfront Id

Contents

  • serverless-plugin-lambda-edge
  • Usage

Related

GuidesPluginsExamplesSlack CommunitySupport