Skip to content

LambdaException: Could not find the required '*.deps.json' from functions in different assembly #313

@zahycs

Description

@zahycs

I'm facing an issue organizing handlers/functions in several projects and having one serverless template project, this is the project that we will deploy, projects are organized as following :

  • AWS Serverless Application (project1), this project contains the serverless.yaml with several handlers, handlers exist in different projects.
  • 4 Class libraries projects (Lib1.. Lib4 ), every project contains 1 or more functions.

the Package created and uploaded to S3 bucket contains all assemblies (lib1..Lib4, and project1) but only one deps.json file : Project1.deps.json

Invoking any function from any of the referenced assemblies ( lib1.. lib4) throws :
{ "errorType": "LambdaException", "errorMessage": "Could not find the required 'lib1.deps.json'. This file should be present at the root of the deployment package." }

Is there a solution to such situation? adding all functions in one project is something we can't afford as it will be very difficult to maintain

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceQuestion that needs advice or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions