aws-samples / aws-lambda-extensions

A collection of sample extensions to help you get started with AWS Lambda Extensions
MIT No Attribution
445 stars 146 forks source link

Having trouble publishing a go lambda extension inside a lambda container image #78

Closed Danwakeem closed 1 year ago

Danwakeem commented 1 year ago

I am trying to publish a similar dockerized lambda container with an embedded extension similar to what you have created here.

Except instead of a python lambda extension I wanted to use golang and I am trying to attach this to a dockerzied nodejs lambda function.

But when I try and combine the two I am getting this error 👇

error-screenshot

I have a sample repository here where you can see and deploy exactly what I have created to recreate this issue.

I am somewhat confused because the extension seems to work fine deployed on its own as a layer and if I modify the docker file for the nodejs lambda container to publish the extension code to a directory other than /opt/extensions then I am able to find the extension code when I search for it within my containerized nodejs app 🤔

Danwakeem commented 1 year ago

TBH I am not sure what I did wrong but all of the sudden it started working for me 🤷