serverless-plugin-cloudfront-lambda-edge | Adds Lambda @ Edge support to Serverless | Serverless library
kandi X-RAY | serverless-plugin-cloudfront-lambda-edge Summary
kandi X-RAY | serverless-plugin-cloudfront-lambda-edge Summary
serverless-plugin-cloudfront-lambda-edge is a JavaScript library typically used in Serverless applications. serverless-plugin-cloudfront-lambda-edge has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can install using 'npm i serverless-plugin-cloudfront-lambda-edge' or download it from GitHub, npm.
This is a plugin for the Serverless framework that adds support for associating a Lambda function with a CloudFront distribution to take advantage of the Lambda@Edge features of CloudFront. Even though CloudFormation added support for Lambda@Edge via its LambdaFunctionAssociations config object, it would be difficult to define a CloudFront distribution in your serverless.yml file's resources that links to one of the functions that you're deploying with Serverless. Why? Because the LambdaFunctionAssociations array needs a reference to the Lambda function's version (AWS::Lambda::Version resource), not just the function itself. (The documentation for CloudFormation says "You must specify the ARN of a function version; you can't specify a Lambda alias or $LATEST."). Serverless creates the version automatically for you, but the logical ID for it is seemingly random. You'd need that logical ID to use a Ref in your CloudFormation template for the function association. This plugin hides all that for you - it uses other features in Serverless to be able to programmatically determine the function's logical ID and build the reference for you in the LambdaFunctionAssociations object. It directly modifies your CloudFormation template before the stack is ever deployed, so that CloudFormation does the heavy lifting for you. This 2.0 version of the plugin is thus much faster and easier to use than the 1.0 version (which existed before CloudFormation supported Lambda@Edge).
This is a plugin for the Serverless framework that adds support for associating a Lambda function with a CloudFront distribution to take advantage of the Lambda@Edge features of CloudFront. Even though CloudFormation added support for Lambda@Edge via its LambdaFunctionAssociations config object, it would be difficult to define a CloudFront distribution in your serverless.yml file's resources that links to one of the functions that you're deploying with Serverless. Why? Because the LambdaFunctionAssociations array needs a reference to the Lambda function's version (AWS::Lambda::Version resource), not just the function itself. (The documentation for CloudFormation says "You must specify the ARN of a function version; you can't specify a Lambda alias or $LATEST."). Serverless creates the version automatically for you, but the logical ID for it is seemingly random. You'd need that logical ID to use a Ref in your CloudFormation template for the function association. This plugin hides all that for you - it uses other features in Serverless to be able to programmatically determine the function's logical ID and build the reference for you in the LambdaFunctionAssociations object. It directly modifies your CloudFormation template before the stack is ever deployed, so that CloudFormation does the heavy lifting for you. This 2.0 version of the plugin is thus much faster and easier to use than the 1.0 version (which existed before CloudFormation supported Lambda@Edge).
Support
Quality
Security
License
Reuse
Support
serverless-plugin-cloudfront-lambda-edge has a low active ecosystem.
It has 264 star(s) with 37 fork(s). There are 7 watchers for this library.
It had no major release in the last 12 months.
There are 7 open issues and 46 have been closed. On average issues are closed in 46 days. There are 1 open pull requests and 0 closed requests.
It has a neutral sentiment in the developer community.
The latest version of serverless-plugin-cloudfront-lambda-edge is 2.1.0
Quality
serverless-plugin-cloudfront-lambda-edge has 0 bugs and 0 code smells.
Security
serverless-plugin-cloudfront-lambda-edge has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
serverless-plugin-cloudfront-lambda-edge code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
serverless-plugin-cloudfront-lambda-edge is licensed under the MIT License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
serverless-plugin-cloudfront-lambda-edge releases are not available. You will need to build from source code and install.
Deployable package is available in npm.
Installation instructions are not available. Examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of serverless-plugin-cloudfront-lambda-edge
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of serverless-plugin-cloudfront-lambda-edge
serverless-plugin-cloudfront-lambda-edge Key Features
No Key Features are available at this moment for serverless-plugin-cloudfront-lambda-edge.
serverless-plugin-cloudfront-lambda-edge Examples and Code Snippets
No Code Snippets are available at this moment for serverless-plugin-cloudfront-lambda-edge.
Community Discussions
Trending Discussions on serverless-plugin-cloudfront-lambda-edge
QUESTION
Size of Cloudfront event function too big when combined with regular lambda function
Asked 2020-Oct-08 at 20:37
I have created an S3 website and have wired up some Cloufront events using the '@silvermine/serverless-plugin-cloudfront-lambda-edge' plugin which both work as expected:
...ANSWER
Answered 2020-Oct-08 at 20:37You can specify functions to be packaged indiviudally and set includes/exclude on a per function basis with:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install serverless-plugin-cloudfront-lambda-edge
You can install using 'npm i serverless-plugin-cloudfront-lambda-edge' or download it from GitHub, npm.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page