-
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
feat(lambda-python): support build args (#12949) #13938
Conversation
If possible, I'd like some help in adding support for passing in Docker environment variables for both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you consider exposing a bundling
option (like in NodeJsFunction
) which already allows specifying buildArgs
.
|
||
**Lambda with custom Docker Build Time Variables** | ||
|
||
Use the `build_args` parameter to pass build arguments when building the bundling image: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the `build_args` parameter to pass build arguments when building the bundling image: | |
Use the `buildArgs` parameter to pass build arguments when building the bundling image: |
* | ||
* @default - no build arguments are passed | ||
*/ | ||
readonly buildArgs?: { [key:string] : string }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stylistic:
readonly buildArgs?: { [key:string] : string }; | |
readonly buildArgs?: { [key:string]: string }; |
I did consider creating a bundling options class, but after looking at its implementation in If desired, I could try my hand at exposing a |
Hmm, I think I was confused because I assumed |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
We currently have the following API for the
I think we can do the same here. |
@rirze I am closing this PR for now. Feel free to re-open when ready to continue :-) |
Add support for passing build arguments when building the bundling
image.
Closes #12949
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license