Running 'git' in AWS lambda

前端 未结 3 729
盖世英雄少女心
盖世英雄少女心 2021-02-07 13:03

I am trying to run git in AWS lambda to make a checkout of a repository.

This is my setup:

  • I am using nodejs 4.3
  • I am not using nodegit because I
3条回答
  •  渐次进展
    2021-02-07 13:34

    Yep, this is definitely possible, I've created a Lambda Layer that achieves just this. No need to mess with any env variables, should work out of the box:

    https://github.com/lambci/git-lambda-layer

    As stated in the README, all you need to do is add a layer with the following ARN:

    arn:aws:lambda::553035198032:layer:git:
    

    (replace and , check README for latest version)

提交回复
热议问题