Closed FurqanHabibi closed 1 year ago
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
Hi @FurqanHabibi,
you mention it is not working with poetry, does that mean it works with pip?
Ok, understood what you meant when pointing to https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/1171025ea1e6d40bd7f37a63d130069b68ef8d5f/package.py#L1168
Working on a fix...
This issue has been resolved in version 4.13.0 :tada:
I'm going to lock this issue because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
We are trying to pass the following environment variable to the docker container via
docker_additional_options
:but as can be seen in the following output, said options is not being passed to the docker run command:
Versions
Reproduction Code
Modify the build-package example's
package_dir_poetry
module below https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/1171025ea1e6d40bd7f37a63d130069b68ef8d5f/examples/build-package/main.tf#L49 by addingSteps to reproduce the behavior:
Expected behavior
docker_additional_options should be passed to the docker run command.
Actual behavior
docker_additional_options is not passed to the docker run command.
Terminal Output Screenshot(s)
Additional context
The culprit is likely this line https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/1171025ea1e6d40bd7f37a63d130069b68ef8d5f/package.py#L1168
docker
object is not passed todocker_run_command
.