- By Gojko Adzic
Claudia 3.0.0 is now on NPM, bringing several important new features:
- Deploying to Lambda@Edge. To create an edge function, deploy it to
us-east-1
with the usual Node6 runtime, make sure to create an alias using—version
then add CloudFront triggers usingclaudia set-cloudfront-trigger
. Please note that due to the current limitations of the Lambda@Edge deployments, you will need to use a specific function version for deployments. As a convenience, Claudia allows you to specify both an alias created using—version
(such asdevelopment
) or a numeric version for deploying CloudFront triggers. Under the hood, triggers are always connected with a numerical version, so you will need to re-run the trigger command every time you want to deploy a new update. Also, functions deployed to Lambda@Edge can currently not be deleted, again due to a limitation of the underlying platform. For more information about Lambda@Edge, check out the official AWS guide. - support for configuring 3GB Lambda functions using
--memory
- support for deploying custom API Gateway Responses
- faster API GW deployments by using a single handler for CORS OPTIONS instead of replicating it for each supported route
- support for generating quick start projects with
claudia generate
This release is fully backwards compatible with 2.0 in terms of client code, but required changes in internal protocols between the Claudia API Builder and the claudia
command line tool, so we increased the major version to avoid incompatible updates to old projects. To use version 3 with API Gateway and Chatbot deployments, also update your Claudia API Builder dependency to at least 3.0.0.
Interested in Claudia.js? Get notified when we release a new version.
Low-volume, high value mailing list, no ads or spam.