Skip to content

Provider runtime nodejs20.x is missing #12252

@ad-si

Description

@ad-si

Are you certain it's a bug?

  • Yes, it looks like a bug

Is the issue caused by a plugin?

  • It is not a plugin issue

Are you using the latest v3 release?

  • Yes, I'm using the latest v3 release

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Issue description

When setting provider.runtime to `` I'm getting following warning:

Warning: Invalid configuration encountered
  at 'provider.runtime': must be equal to one of the allowed values [dotnet6, go1.x, java17, java11, java8, java8.al2, nodejs14.x, nodejs16.x, nodejs18.x, provided, provided.al2, python3.7, python3.8, python3.9, python3.10, python3.11, ruby2.7, ruby3.2]

However, it deploys just fine and lists Node.js 20 as the used runtime in AWS Lambda.

Service configuration (serverless.yml) content

service: cron-execute
frameworkVersion: "3"

provider:
  name: aws
  runtime: nodejs20.x

functions:
  cronHandler:
    handler: src/test.main
    events:
      - schedule: cron(0/10 * * * ? *)

Command name and used flags

serverless deploy

Command output

N/A

Environment information

Framework Core: 3.36.0 (local)
Plugin: 7.1.0
SDK: 4.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions