aws / aws/git-remote-codecommit

git-remote-codecommit error in aws python lambda function

Open
#31 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
289
Forks
40
PR merge metrics
No merged PRs in 30d

Description

I have to clone a repository from code commit in my lambda function. the script is working properly in local machine with same iam role and python packages. i added the python package layer in lambda function its giving me below error.

START RequestId: e5350a8f-b998-4360-9cbb-85af8772e88a Version: $LATEST
[ERROR] GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v --branch=main codecommit::us-east-1://]reponame /tmp/test/
stderr: 'Cloning into '/tmp/test'...
git: 'remote-codecommit' is not a git command. See 'git --help'.
'
Traceback (most recent call last):

repo = git.Repo.clone_from(
'codecommit::us-east-1://reponame',
'/tmp/test/',
branch='main'
)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.