Running 'git' in AWS lambda

前端 未结 3 721
盖世英雄少女心
盖世英雄少女心 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:29

    The issue is that you cannot copy just the git binary. You need a portable version of git and even with that you're going to have a bad time because you cannot guarantee that the os the lambda function runs on is going to be compatible with the binary.

    Stepping back, I would just walk away from this approach completely. I would clone and build a package that I would just download pretty much the same way you do downloadDeploymentKeyFromS3Sync.

提交回复
热议问题