Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

defaultLambda name is not being set #308

Closed
@JStein92

Description

@JStein92

Describe the bug
Despite configuring the defaultLamda field, the name is always auto-generated.

To Reproduce
Set the defaultLambda field in your serverless.yml to something. Then view your lambda function in AWS.

myProject:
    component: serverless-next.js
    inputs:
        bucketName: ${env.bucketName}
        name:
            defaultLambda: ${env.name}

Expected behavior
My lamda function should be named according to env.name. env.bucketName works as expected, so I know my .env files are set up correctly.

I've tried hardcoding it as well to be sure.

Screenshots
As you can see here, the lambda function name is still being autogenerated:
image

Desktop (please complete the following information):

  • OS: Ubuntu 18.04.3 LTS

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