Docker build occurs when instantiating my stack 😢 (aws_lambda_python_alpha.PythonFunction) #27961
Unanswered
anentropic
asked this question in
Q&A
Replies: 2 comments
-
created as issue #27991 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a python cdk codebase
I added a
aws_lambda_python_alpha.PythonFunction
to my stack... now when I instantiate the stack containing that Lambda a docker build gets triggeredSurely this should happen at synth/deploy time and not import time?
a) it's annoyingly slow, e.g. my unit tests now do this docker build multiple times 😢
b) it's also noisy - it prints a bunch of output to stderr:
this occurs at the point in the code where the
PythonFunction
is instantiatedI have something like:
Is this a bug? Have I done something wrong? Or it just works like that?
Beta Was this translation helpful? Give feedback.
All reactions