Lambda: make it easier to specify a list of files and directories instead of a directory for code assets
See original GitHub issueSince #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:
- Created 4 years ago
- Reactions:4
- Comments:12 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Still think we should provide first class api for this
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!