From 7b1e0120b0c97e811ea32b67a51e4c9e9ccf4edd Mon Sep 17 00:00:00 2001 From: Gareth McCumskey Date: Wed, 6 Dec 2023 17:52:27 +0000 Subject: [PATCH 1/8] docs: Added video to Monitoring and Observability (#12287) Co-authored-by: Gareth Mc Cumskey --- docs/guides/dashboard/monitoring/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guides/dashboard/monitoring/README.md b/docs/guides/dashboard/monitoring/README.md index 11e11bc225e..2fab05810fd 100644 --- a/docs/guides/dashboard/monitoring/README.md +++ b/docs/guides/dashboard/monitoring/README.md @@ -13,6 +13,8 @@ layout: Doc # Monitoring & Observability + + Easily monitor and observe AWS Lambda functions with Serverless Framework. Access Metrics, Traces, Logs, Errors, and more, across all AWS accounts and Serverless Framework Services. Works with or without deploying through Serverless Framework. Just connect your AWS account. From a57816d4fc5234b388ad054752198b65e6335b34 Mon Sep 17 00:00:00 2001 From: Austen Date: Wed, 28 Feb 2024 23:57:51 -0800 Subject: [PATCH 2/8] chore: Remove Console from getting started --- docs/getting-started.md | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 4674b90b78d..a9618400a5e 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -80,26 +80,12 @@ serverless invoke -f hello --log More details on the `invoke` command can be found [here](https://www.serverless.com/framework/docs/providers/aws/cli-reference/invoke). -If you want to open a session that streams logs from one or multiple AWS Lambda functions, use the new Serverless Framework `dev` command. Instead of relying on AWS Cloudwatch (which is slow) this leverages our new [Serverless Console](https://serverless.com/console) to stream logs and more in less than 1 second to your CLI. It's free, it supports streaming from multiple AWS Lambda functions simultaneously, and it also will stream inputs and outputs your AWS Lambda functions and their SDK calls. +If you want to stream logs from the function you are working on, use this. This will stream logs in real-time from AWS Cloudwatch thanks to the `-t` or `--tail` option from the `hello` AWS Lambda function. ```bash -sls dev +sls logs -f hello -t ``` -If you use the `--verbose` flag, the `dev` command will stream requests and responses of your AWS Lambda functions, as well as your AWS SDK calls, so you can inspect what's happening with AWS DynamoDB, AWS S3, and much more. - -```bash -sls dev --verbose -``` - -By default, `dev` streams logs from all functions in your Serverless Framework Service. But you can target a specific function like this: - -```bash -sls dev -f my-function -``` - -Please note, the `dev` command currently only supports Node.js and Python AWS Lambda runtimes. If you want to stream from AWS Cloudwatch instead, you can use the `tail` command: `serverless logs -f hello --tail`. Please note, this is much slower. - ## Developing Locally Many Serverless Framework users rely on local emulation to develop more quickly. Please note, emulating AWS Lambda and other cloud services is never accurate and the process can be complex. We recommend the following workflow to develop locally... @@ -122,27 +108,6 @@ Serverless Framework also has a great plugin that allows you to run a server loc More details on the **serverless-offline** plugins command can be found [here](https://github.com/dherault/serverless-offline) -## Monitoring & Observability - -Monitoring AWS Lambda and its other resources dependencies can be challenging (especially as your number of resources grow). This generally involves jumping around various services and products within AWS Cloudwatch. - -Fortunately, we've delivered a consolidated and elegant solution to monitoring AWS Lambda in [Serverless Console](https://console.serverless.com). You'll get a bunch of delightful features out of the box: - -- Start monitoring automatically, with no code instrumentation required. -- Monitor everything via a consolidated Metrics view for all of your AWS Lambda functions across AWS accounts, regions and more. -- Troubleshoot any invocation by querying rich tags that are automatically added by Serverless Console. -- Understand issues via detailed Traces detailing what happened within your AWS Lambda invocation. -- Capture Errors, Warnings and more. -- Stream Logs and other telemetry instantly while you develop via the Dev Mode user interface. - -To set up Serverless Console automatically, run: - -```bash -sls --console -``` - -Serverless Console is designed for developers, and it moves at their speed. - ## Remove Your Service If you want to delete your service, run `remove`. This will delete all the AWS resources created by your project and ensure that you don't incur any unexpected charges. It will also remove the service from Serverless Dashboard. From a5db37e021f92aad45a089eaf43189935bd9a35f Mon Sep 17 00:00:00 2001 From: Austen Date: Wed, 13 Mar 2024 00:46:47 -0700 Subject: [PATCH 3/8] chore: Add v.4 banner to readme --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index ccf5dcc1bed..ea556d34ac4 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,13 @@ The Serverless Framework is a command-line tool with an easy and approachable YA Actively maintained by [Serverless Inc](https://www.serverless.com). +
+
+ +[![sfv4_00000](https://github.com/serverless/serverless/assets/2752551/989f8c39-34ac-4177-90f0-3f186a09132e)](https://github.com/serverless/serverless/tree/v4.0) + +
+ # Contents - [Features](#features) From cfa368794a8d56fa49d00038d65df7c6a276d2a0 Mon Sep 17 00:00:00 2001 From: Austen Date: Wed, 13 Mar 2024 00:48:46 -0700 Subject: [PATCH 4/8] chore: Add v.4 banner to readme --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ea556d34ac4..f9138f98f94 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +[![sfv4_00000](https://github.com/serverless/serverless/assets/2752551/989f8c39-34ac-4177-90f0-3f186a09132e)](https://github.com/serverless/serverless/tree/v4.0) + +

+
+ [![Serverless Application Framework AWS Lambda API Gateway](https://s3.amazonaws.com/assets.github.serverless/readme-serverless-framework.gif)](https://serverless.com) [![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) @@ -10,17 +15,14 @@ [Website](http://www.serverless.com) • [Docs](https://serverless.com/framework/docs/) • [Community Slack](https://serverless.com/slack) • [Forum](http://forum.serverless.com) • [Twitter](https://twitter.com/goserverless) • [Meetups](https://www.meetup.com/pro/serverless/) +
+ **The Serverless Framework** – Build applications on AWS Lambda and other next-gen cloud services, that auto-scale and only charge you when they run. This lowers the total cost of running and operating your apps, enabling you to build more and manage less. The Serverless Framework is a command-line tool with an easy and approachable YAML syntax to deploy both your code and cloud infrastructure needed to make tons of serverless application use-cases. It's a multi-language framework that supports Node.js, Typescript, Python, Go, Java, and more. It's also completely extensible via over 1,000 plugins which add more serverless use-cases and workflows to the Framework. Actively maintained by [Serverless Inc](https://www.serverless.com). -
-
- -[![sfv4_00000](https://github.com/serverless/serverless/assets/2752551/989f8c39-34ac-4177-90f0-3f186a09132e)](https://github.com/serverless/serverless/tree/v4.0) -
# Contents From a539655a438b02e2fd44240e74347316940dcccd Mon Sep 17 00:00:00 2001 From: Maciej Skierkowski Date: Wed, 13 Mar 2024 01:20:37 -0700 Subject: [PATCH 5/8] chore: add new v4 issue template (#12386) * V4 issue report * fix: syntax for issue * fix: required syntax on textarea issue * fix: indentation on bug report * chore: add IDs to fields * fix: remove type --- .github/ISSUE_TEMPLATE/bug-report-v4.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug-report-v4.yml diff --git a/.github/ISSUE_TEMPLATE/bug-report-v4.yml b/.github/ISSUE_TEMPLATE/bug-report-v4.yml new file mode 100644 index 00000000000..238c9f154a4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report-v4.yml @@ -0,0 +1,18 @@ +name: V.4 Bug Report & Feedback +description: Report an issue/feedback for Serverless Framework v.4 Alpha/Beta release +labels: V4 +body: + - type: textarea + id: version + attributes: + label: What version of Serverless Framework are you using? + description: Output of `serverless --version` + validations: + required: true + - type: textarea + id: what-happened + attributes: + label: Issue description / feedback + description: Describe the issue, repro steps, and important context to help us reproduce the issue and find the root cause. + validations: + required: true From c38ec78a02251b1ffcc2c100ad746d38319556da Mon Sep 17 00:00:00 2001 From: Austen Date: Wed, 13 Mar 2024 14:19:57 -0700 Subject: [PATCH 6/8] chore: Add v4 banner to readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f9138f98f94..85d8d8fa7bf 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![sfv4_00000](https://github.com/serverless/serverless/assets/2752551/989f8c39-34ac-4177-90f0-3f186a09132e)](https://github.com/serverless/serverless/tree/v4.0) +[![sfv4_00000](https://github.com/serverless/serverless/assets/2752551/fe5487c2-fc65-46ec-b23b-67a1f3e06830)](https://github.com/serverless/serverless/tree/v4.0)


From 77e697d790a1b398ffc47ae17d8568d32d4480da Mon Sep 17 00:00:00 2001 From: Austen Date: Wed, 13 Mar 2024 14:41:41 -0700 Subject: [PATCH 7/8] chore: Update readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 85d8d8fa7bf..833d427e649 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -[![sfv4_00000](https://github.com/serverless/serverless/assets/2752551/fe5487c2-fc65-46ec-b23b-67a1f3e06830)](https://github.com/serverless/serverless/tree/v4.0) +[![sfv4_00000](https://github.com/serverless/serverless/assets/2752551/6cf62477-7834-49dc-9a41-f71b76d70a18)](https://github.com/serverless/serverless/tree/v4.0) +


From f696c27a0ff512a263df445263b0c424921e38a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Buscht=C3=B6ns?= Date: Thu, 9 Apr 2026 13:53:02 +0200 Subject: [PATCH 8/8] PLT-621 chore(ci/actions): pin GitHub Actions SHAs (#1) --- .github/workflows/integrate.yml | 32 ++++++++++++++++---------------- .github/workflows/publish.yml | 18 +++++++++--------- .github/workflows/validate.yml | 26 +++++++++++++------------- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml index 63a0c0fe083..d51b82f970e 100644 --- a/.github/workflows/integrate.yml +++ b/.github/workflows/integrate.yml @@ -17,10 +17,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 16.x registry-url: https://registry.npmjs.org @@ -37,7 +37,7 @@ jobs: - name: Retrieve dependencies from cache id: cacheNpm - uses: actions/cache@v3 + uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 with: path: | ~/.npm @@ -64,11 +64,11 @@ jobs: runs-on: windows-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Retrieve dependencies from cache id: cacheNpm - uses: actions/cache@v3 + uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 with: path: | ~/.npm @@ -77,7 +77,7 @@ jobs: restore-keys: npm-v16-${{ runner.os }}-${{ github.ref }}- - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 16.x @@ -94,11 +94,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Retrieve dependencies from cache id: cacheNpm - uses: actions/cache@v3 + uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 with: path: | ~/.npm @@ -107,7 +107,7 @@ jobs: restore-keys: npm-v14-${{ runner.os }}-${{ github.ref }}- - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 14.x @@ -126,10 +126,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 12.x @@ -141,10 +141,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 4.x @@ -163,7 +163,7 @@ jobs: SERVERLESS_BINARY_PATH: ./dist/serverless-linux steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 with: # Ensure to have complete history of commits pushed with given push operation # It's loose and imperfect assumption that no more than 30 commits will be pushed at once @@ -173,7 +173,7 @@ jobs: token: ${{ secrets.USER_GITHUB_TOKEN }} - name: Retrieve dependencies from cache - uses: actions/cache@v3 + uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 with: path: | ~/.npm @@ -186,7 +186,7 @@ jobs: python-version: '3.11' - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 16.x diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d97ada64ab4..15dc3f014c2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,10 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Retrieve dependencies from cache - uses: actions/cache@v3 + uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 id: cacheNpm with: path: | @@ -25,7 +25,7 @@ jobs: key: npm-v16-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }} - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 16.x registry-url: https://registry.npmjs.org @@ -61,10 +61,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }} steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Retrieve dependencies from cache - uses: actions/cache@v3 + uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 id: cacheNpm with: path: | @@ -73,7 +73,7 @@ jobs: key: npm-v16-${{ runner.os }}-refs/heads/main-${{ hashFiles('package.json') }} - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 16.x registry-url: https://registry.npmjs.org @@ -117,10 +117,10 @@ jobs: CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }} steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Retrieve dependencies from cache - uses: actions/cache@v3 + uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 with: path: | ~/.npm @@ -128,7 +128,7 @@ jobs: key: npm-v16-${{ runner.os }}-refs/heads/main-${{ hashFiles('package.json') }} - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 16.x registry-url: https://registry.npmjs.org diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 30e95dfb86a..8ffc95a66bd 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 with: # For commitlint purpose ensure to have complete list of PR commits # It's loose and imperfect assumption that PR has no more than 30 commits @@ -32,7 +32,7 @@ jobs: - name: Retrieve dependencies from cache id: cacheNpm - uses: actions/cache@v3 + uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 with: path: | ~/.npm @@ -43,7 +43,7 @@ jobs: npm-v16-${{ runner.os }}-refs/heads/main- - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 16.x @@ -80,11 +80,11 @@ jobs: runs-on: windows-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Retrieve dependencies from cache id: cacheNpm - uses: actions/cache@v3 + uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 with: path: | ~/.npm @@ -95,7 +95,7 @@ jobs: npm-v16-${{ runner.os }}-refs/heads/main- - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 16.x @@ -112,11 +112,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Retrieve dependencies from cache id: cacheNpm - uses: actions/cache@v3 + uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 with: path: | ~/.npm @@ -127,7 +127,7 @@ jobs: npm-v14-${{ runner.os }}-refs/heads/main- - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 14.x @@ -146,10 +146,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 12.x @@ -161,10 +161,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Install Node.js and npm - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 4.x