Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

281
Visualizações
Unable to deploy lambda function written in Go

I am attempting to deploy my code to AWS Lambda. I've written it in Go. It builds just fine but I receive this error when running it via the Lambda test functionality:

{
  "errorMessage": "fork/exec /var/task/github-activity: no such file or directory",
  "errorType": "PathError"
}

You can view the full code at: https://github.com/JustinDFuller/github-activity I have tested and seen that it works fine on my machine. (I've tried on windows and linux).

The file I am deploying is made by running the following commands:

GOOS=linux GOARCH=amd64 go build -o main awsLambdaImpl.go zip main.zip main

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Handler for a Go Lambda is the path to executable.

Since you're uploading a zip file of the following structure

main.zip
|
`-- main  <-- executable

your handler name has to be main.

If you packed your lambda in the following way, your handler would then be

main.zip
|
`-- subdir
      |
      `-- executableInASubdirPackedIntoAZip  <-- executable

your handler would then be subdir/executableInASubdirPackedIntoAZip.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda