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

Python import git module error for AWS Lambda #25

Closed
UdhavPawar opened this issue Jul 30, 2020 · 1 comment
Closed

Python import git module error for AWS Lambda #25

UdhavPawar opened this issue Jul 30, 2020 · 1 comment

Comments

@UdhavPawar
Copy link

Hello,

  • I'm trying to import git in a python AWS lambda.

  • After following through guide and adding a new layer with ARN: arn:aws:lambda:us-east-1:553035198032:layer:git-lambda2:7 the function is not able to import module.
    image

  • Verified the lambda's and layer's ARN match which is us-east-1.

  • Error Response:

image

Any guidance is appreciated. Thank You.

@UdhavPawar UdhavPawar changed the title import git module for Python Lambda Python import git module error for AWS Lambda Jul 30, 2020
@mhart
Copy link
Member

mhart commented Jul 30, 2020

This layer provides the git binary – not a Python module. This is a duplicate of #15 – you can use the subprocess to call git binary from Python

@mhart mhart closed this as completed Jul 30, 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