lambci/git-lambda-layer

Python import git module error for AWS Lambda

UdhavPawar opened this issue · 1 comments

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.

mhart commented

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