Skip to content

Releases: serverless/serverless

4.4.4

02 Oct 16:42
9e68a34
Compare
Choose a tag to compare

This is another Serverless Framework V.4 GA release. If you have Serverless Framework V.4 installed already, it will auto-update within 24 hours, or you can run serverless update to get the latest version immediately. If you are upgrading to V.4 from V.3 or less, see our Upgrading to Serverless Framework V.4 Documentation.

Bugs:

  • Fixes #12797 Can not deploy assets to aws with serverless-lift plugin using
  • Fixes #12838 The Process of Obtaining the StepFunctions ARN fails
  • Fixes #12835 Dev Mode - Failed requests when executing long running Lambdas

4.4.3

02 Oct 16:40
9e68a34
Compare
Choose a tag to compare

This is another Serverless Framework V.4 GA release. If you have Serverless Framework V.4 installed already, it will auto-update within 24 hours, or you can run serverless update to get the latest version immediately. If you are upgrading to V.4 from V.3 or less, see our Upgrading to Serverless Framework V.4 Documentation.

Bugs:

  • Fixes #12755 Parameters defined in global stages property not loading when used in custom property
  • Fixes #12815 Serverless v4 issue with plugin getting objects as parameters
  • Fixes #12816 Issue with parameters for plugin defined variables sources
  • Fixes #12822 Error Occurs When Trying to Retrieve CloudFormation Stack Output Using ${cf with Nested ${file

4.4.2

25 Sep 16:09
28fbc71
Compare
Choose a tag to compare

This is another Serverless Framework V.4 GA release. If you have Serverless Framework V.4 installed already, it will auto-update within 24 hours, or you can run serverless update to get the latest version immediately. If you are upgrading to V.4 from V.3 or less, see our Upgrading to Serverless Framework V.4 Documentation.

Bugs:

  • Fix issue with Axiom integration. #12827
  • Fix issue with using Axiom integration with License Keys

4.4.1

24 Sep 17:20
ad450f2
Compare
Choose a tag to compare

This is another Serverless Framework V.4 GA release. If you have Serverless Framework V.4 installed already, it will auto-update within 24 hours, or you can run serverless update to get the latest version immediately. If you are upgrading to V.4 from V.3 or less, see our Upgrading to Serverless Framework V.4 Documentation.

Features:

  • Improved output formatting when running Serverless Compose deployments

Bugs:

  • Fix issue with serverless remove if bucket does not exist
  • Fix error handling when variables are used incorrectly in service blocks in Serverless Compose
  • Fix error when using strings in parameter block in Serverless Compose

4.4.0

19 Sep 21:41
d132d4f
Compare
Choose a tag to compare

This is another Serverless Framework V.4 GA release. If you have Serverless Framework V.4 installed already, it will auto-update within 24 hours, or you can run serverless update to get the latest version immediately. If you are upgrading to V.4 from V.3 or less, see our Upgrading to Serverless Framework V.4 Documentation.

Features:

  • Adds support for SAM & CF in Serverless Compose
  • Adds support for shared global deployment bucket with SAM & CF
  • Adds support for serverless info command for SAM & CF

Bugs:

  • Fixed #12778 - serverless deploy function with a custom docker image fails
  • Fixed #12799 - sls deploy started throwing following error since last 2 days: str2.indexOf is not a function
  • Fixed issue with serverless remove with failing dependencies.

4.3.2

11 Sep 03:57
e76c9c4
Compare
Choose a tag to compare

This is another Serverless Framework V.4 GA release. If you have Serverless Framework V.4 installed already, it will auto-update within 24 hours, or you can run serverless update to get the latest version immediately. If you are upgrading to V.4 from V.3 or less, see our Upgrading to Serverless Framework V.4 Documentation.

In this release we introducing the AWS AI Stack, a full-stack, serverless, boilerplate for AI applications on AWS and to support this new project we fixed some bugs and added some new major features to Serverless Compose.

Features:

Bugs:

4.2.5

04 Sep 16:35
bf2d00e
Compare
Choose a tag to compare

This is another Serverless Framework V.4 GA release. If you have Serverless Framework V.4 installed already, it will auto-update within 24 hours, or you can run serverless update to get the latest version immediately. If you are upgrading to V.4 from V.3 or less, see our Upgrading to Serverless Framework V.4 Documentation.

Features

  • Added esbuild-package:package hooks to lifecycle events.

Bug Fixes

  • Fixed error reporting issue with SAM/CF support.
  • Fixed package.patterns bug when used with build.esbuild.
  • Fixed bug that improperly showed Axiom progress bar.

4.2.4

29 Aug 19:02
0b15744
Compare
Choose a tag to compare

Hidden costs in AWS Lambda deployments can quickly add up, particularly from logs, metrics, and traces. These expenses often catch teams by surprise, impacting budgets and operational efficiency.

That’s where Axiom comes in—a standout observability solution that combines a sleek user experience with competitive pricing and an impressive free tier offering 500GB/month of data ingestion.

We’re excited to introduce Axiom’s integration with the Serverless Framework. With a simple, one-line configuration in your serverless.yml file, you can easily enhance your monitoring capabilities without breaking the bank.

Cost Comparison
Switching from AWS CloudWatch to Axiom can lead to substantial cost savings due to the significant price difference between the two services:

  • Axiom: $0.15/GB of ingested data
  • AWS CloudWatch: $0.50/GB of ingested data

For example, when managing 5 TB of daily log data, Axiom’s pricing results in a total daily cost of $750 and a monthly cost of $22,500. In contrast, AWS CloudWatch costs $2,650 daily and $79,500 monthly for the same amount of data. This means that by choosing Axiom, companies can save $57,000 per month, which equates to a 70% reduction in costs compared to using CloudWatch.

These savings not only free up budget for other initiatives but also come with the added benefit of Axiom’s more powerful and user-friendly platform for managing and analyzing logs, offering deeper insights and faster problem resolution.

Set Up Axiom with the Serverless Framework
Create an Axiom account (Axiom offers a very generous free tier).

Create or join an organization in Axiom–but skip the step to create a Dataset in the Axiom onboarding process, as it will be done automatically and designed per best practices by the Serverless Framework. Instead, click the setting icon in the Dashboard, select API Tokens on the left, and select New API Token.

Enter a name, choose “None” for Expiration, then click the Advanced tab to select the permissions your token should have.

Assign the Ingest, Query, Dashboards, Datasets, and Monitors permissions.

Set the AXIOM_TOKEN environment variable in your CI/CD pipeline or locally. The value should be the API token you created in Axiom.

export AXIOM_TOKEN=your-axiom-access-token

In your serverless.yml file, add the observability property to the stages block, and use axiom as the provider. Here is the easiest way to configure Axiom across all Stages within your serverless application.

service: my-api

stages:
  production:
    observability: axiom

functions:
  api_products:
    handler: handler.products
    events:
      - http:
          path: /ecommerce/products
          method: get

Deploy your Service with the Serverless Framework, invoke your AWS Lambda functions, and you'll instantly see logs in the Axiom dashboard.

There are many more configuration options for sophisticated set-ups, such as:

  • Stage-specific Axiom setup
  • Custom dataset naming
  • Selective function logging
  • Support for additional CloudWatch Log Groups

Consult our documentation for more information on these options.

After deployment with the Serverless Framework, and once your AWS Lambda functions are invoked, Axiom automatically detects AWS Lambda data and creates a custom dashboard out-of-the-box. This allows users to immediately visualize and monitor the performance and health of their AWS Lambda functions. Axiom’s intuitive query capabilities, powered by APL (Axiom Processing Language), further enhance the ability to perform complex searches and filter logs, providing in-depth analysis and faster insights to quickly identify and resolve issues in serverless environments.

For teams currently using AWS CloudWatch, the Axiom integration is designed to be non-disruptive. It manages the necessary AWS resources, allowing you to focus on deriving insights from your logs.

Conclusion
The Axiom integration for Serverless Framework offers a powerful solution to mitigate the often-overlooked costs of AWS Lambda observability. It provides a cost-effective, powerful and elegant alternative without compromising on essential features or performance.

4.2.3

29 Aug 18:56
0b15744
Compare
Choose a tag to compare

This is another Serverless Framework V.4 GA release. If you have Serverless Framework V.4 installed already, it will auto-update within 24 hours, or you can run serverless update to get the latest version immediately. If you are upgrading to V.4 from V.3 or less, see our Upgrading to Serverless Framework V.4 Documentation.

Bug Fixes

  • Fixes SAM/CF support which was first made available in 4.2.1 which prevented deployment of SAM/CF based projects

4.2.1

21 Aug 21:34
0eed360
Compare
Choose a tag to compare

Serverless Framework version 4.2.1 now offers experimental support for AWS SAM (Serverless Application Model) and CloudFormation templates. The reason: medium-to-large organizations are seeking to consolidate tools to standardize workflows and simplify development. They don't want multiple serverless frameworks, they just want one.

Get started with SAM and Cloudformation in Serverless Framework by reading the docs.

With this initial release, Serverless Framework enables you to deploy new or existing SAM or CloudFormation projects, without requiring modifications to your existing configuration files. Simply take your raw SAM or CF file in YAML or JSON, and the Serverless Framework will handle the deployment seamlessly.

Serverless Framework will auto-detect SAM/Cloudformation projects in template.yml. You can also provide a custom template file name. We've enabled initial support for samconfig.toml configuration properties that are specific to deployment.

Further, we've enabled support for Serverless Framework's popular Serverless Variables, enabling you to add them directly into SAM and CF syntax. Here are the Serverless Variables that are supported in SAM/CFN templates, with many more coming:

  • AWS Account ID: ${aws:accountId}
  • AWS Region: ${aws:region}
  • AWS Stack Output: ${cf:another-service-dev.functionPrefix}
  • CLI Options: ${opt:<option>}
  • SLS Instance ID: ${sls:instanceId}
  • Environment Variables: ${env:ENV_VAR}
  • File: ${file(./myCustomFile.yml)}
  • Git: ${git:<variable>}
  • S3: ${s3:myBucket/myKey}
  • SSM: ${ssm:/path/to/service/id}

Looking ahead, our focus will be on integrating SAM and CloudFormation templates into Serverless Compose files, allowing you to deploy traditional Serverless Framework, SAM, and CloudFormation projects together. Additionally, you will be able to set stage-based configuration Variables that all project files can inherit, as well as share security policies, observability configuration, and more—bringing you closer to a fully consolidated, streamlined workflow.