http.awslambda Plugin
This feature does not come with Caddy by default. To get it, select the http.awslambda plugin when you download Caddy.
The awslambda plugin gateways requests to AWS Lambda functions.
Examples
Proxy /api/* requests to Lambda
awslambda /api/ { aws_region us-west-2 qualifier prod include api-* exclude *-internal }
Proxy requests starting with /api/ to AWS Lambda using the us-west-2 region, for functions staring with api- but not ending with -internal. A qualifier is used to target the prod aliases for each function. For example, requests to /api/api-user would each invoke the AWS Lambda function named "api-user".
Related Links
Documentation
Access the full documentation for this plugin off-site:
Plugin Help
Get help from the maintainers of the http.awslambda plugin:
Plugin Website
Visit http.awslambda’s website for more information:
Plugin Author: James Cooper
Last Updated: 11 Apr 2017, 6:11 AM
This plugin is independent of the Caddy project and is not endorsed or maintained by Caddy developers. Use at your own risk. Do not file issues for this plugin on Caddy’s bug tracker.