Skip to content

Issue with more lambdas on the same level #11

Description

@RobertDittmann

With structure like:

-root
--XYZ
---lambdas
----lambda1
-----src
------index.ts
----lambda2
-----src
------index.ts

, when trying to deploy both lambdas in same stack like for example:

const lambda1 = new NodejsFunction(this, 'lambda1', {
                runtime: lambda.Runtime.NODEJS_14_X,
                handler: 'XYZ/lambdas/lambda1/src/index.handler',         
                functionName: 'lambda1',
            exclude: [
                'aws-sdk'
            ],
            timeout: cdk.Duration.seconds(5)
        });
const lambda2 = new NodejsFunction(this, 'lambda2', {
                runtime: lambda.Runtime.NODEJS_14_X,
                handler: 'XYZ/lambdas/lambda2/src/index.handler',         
                functionName: 'lambda2',
            exclude: [
                'aws-sdk'
            ],
            timeout: cdk.Duration.seconds(5)
        });

When looking on source code of deployed lambda structure of each function is:

-XYZ
--lambdas
---lambda1
----src
-----index.js
---lambda2
----src
-----index.js

when it should be for lambda1:

-XYZ
--lambdas
---lambda1
----src
-----index.js

and for lambda2:

-XYZ
--lambdas
---lambda2
----src
-----index.js

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions