-
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: Allow passing build args to Docker in PythonFunction #12949
Comments
Happy to accept contributions |
Looking at this to pass ssh agent inside Docker. Would help in getting access to private repositories. I'm going to try to implement this and make a PR, but I'm not fluent in typescript or CDK internals. |
When will this feature be added? |
Sorry, I've been procrastinating this for a while now-- mostly because I'm not super comfortable with TypseScript and not knowing how to implement this feature properly. I'll try to reopen the PR sometime this week or next week and move this forward. |
I have #15324 open which would resolve this. |
…mage (#18082) This refactors the bundling process to match the NodeJs and Go Lambda functions and allows providing a custom bundling docker image. Changes: - refactor bundling to use `cdk.BundlingOptions` - Use updated `Bundling` class - Update tests to use updated `Bundling` class Fixes #10298, #12949, #15391, #16234, #15306 BREAKING CHANGE: `assetHashType` and `assetHash` properties moved to new `bundling` property. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Not 100% sure what the desired solution was since the OP mentions:
Going from #13938, if the goal was to only expose |
This should be fixed in #18082 |
|
…mage (aws#18082) This refactors the bundling process to match the NodeJs and Go Lambda functions and allows providing a custom bundling docker image. Changes: - refactor bundling to use `cdk.BundlingOptions` - Use updated `Bundling` class - Update tests to use updated `Bundling` class Fixes aws#10298, aws#12949, aws#15391, aws#16234, aws#15306 BREAKING CHANGE: `assetHashType` and `assetHash` properties moved to new `bundling` property. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Ability to pass args to docker when using
aws_lambda_python.PythonFunction
Use Case
I am trying to deploy a stack from behind a proxy. I want to be able to pass
--network host
to the PythonLambda docker command so that the container is able to access the internet through the proxy.Proposed Solution
This seems to have been solved for
aws_lambda_nodejs
here:#8117
So perhaps a similar solution?
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: