-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(lambda-python): add local bundling to PythonFunction #18290
Comments
As of the latest CDK version ( You will still see the docker image being built every time, but it should be much faster than before since bundling is not occurring as part of the build. This is also the current behavior for all of the constructs that use Docker bundling. I think it would be great if we could skip the docker build as well. We can repurpose this issue to track that if you want. |
Thanks for the clarification @corymhall. We are in fact seeing what you described. We leverage Having the ability to fully skip the docker build using |
OK maybe I'll repurpose this issue to track allowing local bundling for |
Sounds good! |
@corymhall just to clarify - even with CDK_CONTEXT_JSON='{\"aws:cdk:bundling-stacks\":[\"NONE\"]}' cdk synth Is this expected? |
The
Then It is currently not possible to skip bundling for a stack that you are synthesizing. |
+1 and is anybody aware of a nice workaround for containerless PythonFunction builds at the moment? I'm trying to get CDK working in an Azure Pipelines environment where the runtime is Linux but DinD is not available (but explicit Docker task steps could be?)... Our stack doesn't have any other need for container building: Just a few Python Lambda functions. |
+1 for this issue |
This issue has received a significant amount of attention so we are automatically upgrading its priority. A member of the community will see the re-prioritization and provide an update on the issue. |
As @evgenyka mentioned, I will open a PR for my RFC (aws/aws-cdk-rfcs#609) under this issue. |
@CoreOxide please note that #26062 was a previous trial to achieve that, but was abandoned. Pls see the comments there. |
Description
Similar to the NodeJs Lambda, Python Lambda packaging should allow for local bundling
Use Case
Docker bundling of lambdas is slow and resource intensive. Its valuable to be able to run bundling locally, without Docker.
Proposed Solution
Add a local bundling option similar to NodeJs.
Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: