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

Use custom pypi repository #713

Open
pelacables opened this issue Dec 10, 2024 · 2 comments
Open

Use custom pypi repository #713

pelacables opened this issue Dec 10, 2024 · 2 comments
Labels
stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. type/feature Feature request

Comments

@pelacables
Copy link

Hi,

we have a pypi repository in CodeArtifact where we push some in-house developed python packages.
Now we would like to use that private pypi repository in our lambda so it can download those "private" packages.

I've been reading the builder code but I do not find a way to configure/use a custom pypi repository.

To my understanding I have two options:

  • create a custom Docker image where pypi repo is preconfigured and use it to build the lambda
  • upload all packages (dependencies) together with the lambda

I'm not an expert and I was wondering if someone could provide some hint on how to get the custom repo in the lambda though the lambdabuilder instead of going into one of the above options I've listed.

thanks

@pelacables pelacables added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Dec 10, 2024
@vicheey vicheey added the type/feature Feature request label Dec 11, 2024
@roger-zhangg
Copy link
Member

Hi @pelacables , Thanks for reaching out. We are tracking this as a feature request for now. If you have already investigated into the solution maybe consider sending a PR for that. We always welcome contributions. Thanks

@valerena
Copy link

valerena commented Dec 24, 2024

Have you tried using the PIP_INDEX_URL environment variable? From pip documentation, this environment variable should replace the default Python Package Index (similar to using --index-url when calling pip from the command line)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. type/feature Feature request
Projects
None yet
Development

No branches or pull requests

4 participants