aws / aws/aws-lambda-nodejs-runtime-interface-client
[Feature request] Executing TCP/IP dependency module from Lambda layer.
- Linguagem predominante
- TypeScript
- Estrelas
- 224
- Forks
- 60
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Installed net-ping v1.2.3 from npm and created a Lambda layer, when executing this from AWS Lambda function, getting the below error -
```
{
"errorType": "Error",
"errorMessage": "/opt/nodejs/node_modules/raw-socket/build/Release/raw.node: invalid ELF header",
"trace": [
"Error: /opt/nodejs/node_modules/raw-socket/build/Release/raw.node: invalid ELF header",
" at Object.Module._extensions..node (internal/modules/cjs/loader.js:1131:18)",
" at Module.load (internal/modules/cjs/loader.js:937:32)",
" at Function.Module._load (internal/modules/cjs/loader.js:778:12)",
" at Module.require (internal/modules/cjs/loader.js:961:19)",
" at require (internal/modules/cjs/helpers.js:92:18)",
" at Object. (/opt/nodejs/node_modules/raw-socket/index.js:4:11)",
" at Module._compile (internal/modules/cjs/loader.js:1072:14)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)",
" at Module.load (internal/modules/cjs/loader.js:937:32)",
" at Function.Module._load (internal/modules/cjs/loader.js:778:12)"
]
}
```
I understand this limitation from the [forum](https://forums.aws.amazon.com/message.jspa?messageID=805630) but raising a feature request for allowing the same on Lambda into the future.
Guia de contribuição
Direção de pesquisa
Comece reproduzindo a falha relatada do AWS Lambda com o net-ping v1.2.3 instalado em uma camada do Lambda e, em seguida, inspecione raw-socket/build/Release/raw.node e o caminho de require mostrado no trace. O trabalho estará concluído quando for definido e validado se esse runtime pode oferecer suporte à dependência TCP/IP no Lambda sem o erro "invalid ELF header".
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- aws, node.js
- Domínio
- cloud, networking
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 15/100