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

Ability to define multiple directories for Lambda construct #985

Closed
efimk-lu opened this issue Oct 22, 2018 · 2 comments
Closed

Ability to define multiple directories for Lambda construct #985

efimk-lu opened this issue Oct 22, 2018 · 2 comments
Assignees
Labels
@aws-cdk/assets Related to the @aws-cdk/assets package @aws-cdk/aws-lambda Related to AWS Lambda duplicate This issue is a duplicate. feature-request A feature should be added or improved.

Comments

@efimk-lu
Copy link

Hello,
Great framework, keep up the good work.

Right now in order to define a lambda construct you need to set where the code resides, e.g. code: lambda.Code.asset('lambda'). Sometimes you would like to define multiple folders, for example the actual code and node_modules, although packing can be done as a preprocess step before actually running cdk deploy, it would be cleaner to do it as part of the lambda configuration.

@eladb eladb reopened this Dec 13, 2018
@eladb eladb added feature-request A feature should be added or improved. @aws-cdk/aws-lambda Related to AWS Lambda @aws-cdk/assets Related to the @aws-cdk/assets package labels Dec 17, 2018
@spg
Copy link
Contributor

spg commented Aug 6, 2019

I'm totally for this. Also, I like how Serverless has implemented this https://serverless.com/framework/docs/providers/aws/guide/packaging#exclude--include

It would be nice to be able to include/exclude files and directories using glob patterns.

@eladb eladb assigned eladb and unassigned eladb Aug 12, 2019
@eladb eladb assigned nija-at and unassigned eladb Sep 3, 2019
@SomayaB SomayaB added the duplicate This issue is a duplicate. label Sep 25, 2019
@SomayaB
Copy link
Contributor

SomayaB commented Sep 25, 2019

Duplicate of #984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/assets Related to the @aws-cdk/assets package @aws-cdk/aws-lambda Related to AWS Lambda duplicate This issue is a duplicate. feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

5 participants