aws / aws/git-remote-codecommit
git-remote-codecommit error in aws python lambda function
- Vorherrschende Sprache
- Python
- Sterne
- 289
- Forks
- 40
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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'
)
Beitragsleitfaden
Rechercherichtung
Der gemeldete Einstiegspunkt ist git.Repo.clone_from in einer AWS Lambda-Funktion, wobei die CodeCommit-URL und eine Python package layer verwendet werden. Reproduziere den Clone-Versuch in Lambda und vergleiche die verfügbaren Git-Befehle und paketierten Abhängigkeiten mit der lokalen Umgebung. Als erledigt gilt die Aufgabe, wenn derselbe Repository-Clone in Lambda ohne den remote-codecommit-Fehler erfolgreich ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, git, python
- Bereich
- cloud, devops
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100