Here at Serverless, we've been working hard to deliver some holiday goodies.
Today we're proud to announce Serverless Framework v1.25.
You can find a complete list of all the updates in the CHANGELOG.md file.
Faster deployments? Yes, please!
This feature adds S3 Transfer Acceleration support for uploading your deployment packages to S3. Rather than uploading to your region's origin for S3, it uploads the package to CloudFront edge locations and quickly transfers it to S3.
To enable this new feature, use the
--aws-s3-accelerate flag when deploying your service:
$ sls deploy --aws-s3-accelerate
In testing, we've seen huge speedups in package uploads. In an example test, this was 42% faster than using the normal S3 upload for someone located in the target AWS region. When uploading to a different region (e.g. from Italy to us-west-2), we saw 10x speedups! ⚡️
Much thanks to Alex Casalboni for adding this feature!
AWS recently announced regional endpoints for API Gateway. These endpoints are accessed from the same region where your API Gateway REST API is deployed. This enables a lot of interesting use cases, including multi-region Serverless applications with lower latency or the ability to use AWS WAF with your API Gateway REST APIs.
You can enable this feature using the
endpointType property in the
provider block of your
# serverless.yml provider: name: aws endpointType: regional ...
Serverless defaults to an EDGE endpoint, which was the standard before AWS released regional endpoints.
For power users of the Framework, the variable resolution could cause some issues. There are a number of bug fixes related to the variable system including support for circular references and a few different PRs to better handle resolving variables that call out to external services like CloudFormation, SSM, or S3.
These are huge improvements to the power and stability of the Framework, and they're difficult to implement in a consistent, non-breaking way. We appreciate the hard work of our community members in these fixes, particularly Framework core maintainer Frank Schmid, Benjamin Forster, and long-time user Erik Erikson. Be sure to thank these fine folks for their contributions!
This release also includes tons of other improvements and bug fixes.
Thank you very much for reporting bugs, opening issues and joining the discussions!
This release contains lots of hard work from our beloved community, and wouldn't have been possible without passionate people who decided to spend their time contributing back to make the Serverless Framework better.
Huge round of applause to all of the contributors who submitted changes for this release:
Do you want to help out and improve the Serverless Framework?
Great! We have lots of issues where you could leave some feedback or jump directly into the implementation.
Additionally PR reviews are also highly welcomed as they greatly speed up the time-to-merge.
The Serverless Examples Repository is an excellent resource if you want to explore some real world examples, or learn more about the Serverless Framework and serverless architectures in general.
Serverless provides a completely customizable and pluggable codebase. Our community has written a vast amount of awesome plugins you can use to further enhance the capabilities of the Framework. You can find the full list at our Serverless Plugins Repository.
Don't hestitate to open up a PR over there if you've authored or found a new Serverless plugin!