Skip to content
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

Question on private python modules #1

Closed
sjatkins opened this issue Sep 21, 2019 · 4 comments
Closed

Question on private python modules #1

sjatkins opened this issue Sep 21, 2019 · 4 comments

Comments

@sjatkins
Copy link

I am familiar with serverless and it took quite some hacking to get such modules to be available to my python lambda functinos even with putting them in lambda layers. It seemed the build/deploy time and lambda run time both needed access (as far as I can tell).

I am wondering what terraform_aws_lambda_python does to make this easier. I sort of dream of just using an exsiting cleanly created virtualenv at build/deploy time to incorporate these private modules cleanly. Or perhaps the virtualenv you have has some hooks or access for doing such.

How would you personally go about it given this tooling of yours?

@ruzin
Copy link
Owner

ruzin commented Sep 26, 2019

Hey! Good question! Disclaimer: I wrote this module nearly a year ago around the the when lambda layers came out. I am not intimately familiar with lambda layers but I took a quick look and it is trying to solve a similar problem but in a different manner. It seems more appropriate for a scenario wherein you have several functions that share base modules. However, if you're looking for something that can spin up a virtualenv and cleanly install dependencies, then my module may be helpful as it does exactly that. However, in order for it to cater to private modules, there is a bit of work on your end. Here is a link that may be helpful https://dev.to/rf_schubert/how-to-create-a-pip-package-and-host-on-private-github-repo-58pa

@sjatkins
Copy link
Author

sjatkins commented Sep 27, 2019 via email

@sjatkins
Copy link
Author

sjatkins commented Sep 27, 2019 via email

@sjatkins
Copy link
Author

sjatkins commented Sep 27, 2019 via email

@ruzin ruzin closed this as completed May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants