Skip to content

Use custom pypi repository #713

Description

@pelacables

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

Activity

  1. added
    stage/needs-triageAutomatically applied to new issues and PRs, indicating they haven't been looked at.
    on Dec 10, 2024
  2. roger-zhangg commented on Dec 23, 2024

    @roger-zhangg
    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

  3. valerena commented on Dec 24, 2024

    @valerena
    Contributor

    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)

  4. added
    blocked/more-info-neededMore info is needed from the requester. If no response in 14 days, it will become stale.
    and removed
    stage/needs-triageAutomatically applied to new issues and PRs, indicating they haven't been looked at.
    on Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked/more-info-neededMore info is needed from the requester. If no response in 14 days, it will become stale.type/featureFeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions