question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lambda: make it easier to specify a list of files and directories instead of a directory for code assets

See original GitHub issue

Since #4473 has landed, which has support for richer .dockerignore patterns, there is no need for this anymore. This is very simply achieved by:

      code: lambda.Code.fromAsset(".", {exclude: ["**", "!index.py"]}),

You can consider adding this example somewhere if you wish, or just closing this outright.

_Originally posted by @nakedible in https://github.com/aws/aws-cdk/issues/4428#issuecomment-547931520_

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
eladbcommented, Feb 5, 2020

Still think we should provide first class api for this

2reactions
ghostcommented, Nov 18, 2021

I’ve been using this heavily and also just noticed it’s been deprecated… Is there an existing alternate or one in the works? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring file system access for Lambda functions
Configure your Lambda function to access a file system such as an Amazon ... an Amazon Elastic File System (Amazon EFS) file system...
Read more >
deploying lambda code inside a folder with an autogenerated ...
I am trying to set up a lambda in pulumi-aws but my function code when deployed is wrapped in a folder with the...
Read more >
How to Create AWS CDK Lambda Functions? 4 Easy Steps
You can design your code into AWS CDK Lambda functions that process the ... to find a directory on disk at the asset...
Read more >
Snakefiles and Rules — Snakemake 7.19.1 documentation
Instead of a shell command, a rule can run some python code to generate the output: ... Input files can be Python lists,...
Read more >
Authoring Tasks - Gradle User Manual
The directory where the generated files go. As with input files, there are several annotations for output files and directories. A property representing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found