-
Notifications
You must be signed in to change notification settings - Fork 4k
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-python): skip build lambda for all cdk commands #12684
Comments
a must have feature IMHO |
And why does cdk for aws-lambda-python requires docker? |
When a Python handler uses external dependencies, the hash calculated on the output is non-determinstic due to the fact that it includes timestamps. To resolve that, change the asset hash strategy to `SOURCE` which means that the bundle will only be re-created if one of the source files changes. Fixes #12770 Fixes #12684
This is technically a duplicate of #12770 |
|
When a Python handler uses external dependencies, the hash calculated on the output is non-determinstic due to the fact that it includes timestamps. To resolve that, change the asset hash strategy to `SOURCE` which means that the bundle will only be re-created if one of the source files changes. Additionally, the Python image hash, which is also included in the asset hash (to ensure that if the build image changes, the bundle is invalidated) included the absolute path for the `Dockerfile`. This caused the image hash itself to change every time the image was built on a different system. To fix this, we stage the dependency files & dockerfile into a temp directory and build the image from there. Fixes #12770 Fixes #12684 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Reopening as an internal support request noted that this behavior still occurs. I have reproduced this behavior in the latest release. According to the PS engineer:
Since this is non-blocking and doesnt significantly impact performance I am leaving as a feature-request and setting priority to low. |
|
Is it possible to avoid to rebuild lambda at every cdk diff or cdk deploy if no updates are made on them?
Use Case
Every time that i need to change a single configuration parameter on a stack, all lambdas are rebuilt with docker and it takes too much time to deploy a single stack
Proposed Solution
Implement an hash check between lambda version or a flag that enable or disable lambda build
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: