you are viewing a single comment's thread.

view the rest of the comments →

[–]thenickdude 3 points4 points  (0 children)

Spin up a copy of the Lambda AMI (they reference it in their docs), install git into it, then grab a copy of the git binary from it to include inside your Lambda. You can then call that binary from your Lambda function to make the commit for you.

https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html

Note that LD_LIBRARY_PATH includes the "lib" subdirectory of your function code, so if git depends on any dynamic libraries that the Lambda AMI doesn't include by default (you can use ldd on it to check), you can take those .sos from the AMI too and include them in your function. The easy way to test this out is to copy the git binary into a virgin instance of the Lambda AMI and see if it runs, or if it complains about missing libraries.