Have ideas to improve npm?Join in the discussion! »

    serverless-plugin-lambda-edge

    2.0.3 • Public • Published

    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

    Install

    npm i serverless-plugin-lambda-edge

    DownloadsWeekly Downloads

    9

    Version

    2.0.3

    License

    MIT

    Unpacked Size

    7.06 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar