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

aws-lambda-: Way to exclude files in PythonFunction #23313

Open
1 of 2 tasks
jarikujansuu opened this issue Dec 12, 2022 · 1 comment
Open
1 of 2 tasks

aws-lambda-: Way to exclude files in PythonFunction #23313

jarikujansuu opened this issue Dec 12, 2022 · 1 comment
Assignees
Labels
@aws-cdk/aws-lambda Related to AWS Lambda effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2

Comments

@jarikujansuu
Copy link

Describe the feature

Way to exclude files from resulting output, so similar to exclude in AssetOptions used in base Function.

Currently PythonFunction uses hard coded exclude ["*.pyc"] so just way to extend or override that.

Use Case

Many of our functions have for example .mypy_cache dir that can be example 38M in size and there isn't any reason to include that in deployment. Also some of our dependencies include unnecessary stuff and easiest would be to just exclude those files.

Proposed Solution

Currently PythonFunction uses hard coded exclude ["*.pyc"] so just way to extend or override that.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.54.0

Environment details (OS name and version, etc.)

not relevant

@jarikujansuu jarikujansuu added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Dec 12, 2022
@github-actions github-actions bot added the @aws-cdk/aws-lambda Related to AWS Lambda label Dec 12, 2022
@jarikujansuu jarikujansuu changed the title aws-lambda-: (short issue description) aws-lambda-: Way to exclude files in PythonFunction Dec 12, 2022
@peterwoodworth peterwoodworth added p2 effort/small Small work item – less than a day of effort and removed needs-triage This issue or PR still needs to be triaged. labels Dec 13, 2022
@peterwoodworth
Copy link
Contributor

Thanks @jarikujansuu for the feature request. Are you aware of how to contribute? If not, check out our contributing guide. This would be a great feature to contribute, we probably won't have the time for it ourselves but we can try to review a PR 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-lambda Related to AWS Lambda effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

No branches or pull requests

3 participants