Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with more lambdas on the same level #11

Open
RobertDittmann opened this issue Jun 24, 2021 · 0 comments
Open

Issue with more lambdas on the same level #11

RobertDittmann opened this issue Jun 24, 2021 · 0 comments

Comments

@RobertDittmann
Copy link

RobertDittmann commented Jun 24, 2021

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
Repository owner deleted a comment from technosoft-admin Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@RobertDittmann and others