@isudzumi/serverless-plugin-lambda-edge
v1.0.2
Published
serverless plugin for Lambda@Edge with aws-sdk
Downloads
12
Maintainers
Readme
serverless-plugin-lambda-edge
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
- Install the plugin
npm install --save-dev @isudzumi/serverless-plugin-lambda-edge
- Put the plugin name in your
serverless.yml
plugins
- '@isudzumi/serverless-plugin-lambda-edge'
- 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