-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update AWS Lambda SDK to 1.28.0 #120
Update AWS Lambda SDK to 1.28.0 #120
Conversation
For reference, this is how I'm building the Docker image:
|
hi there @ohookins! thanks for contributing. this looks awesome! great work on the bug hunt - i suspect that the previous version of the lambda-go package we were using predates container lambdas, which i imagine is why it doesn't play nicely with them 😅 i'm happy to merge this as-is, but it seems like the dockerfile you've posted above might be useful to people as well - would you be interested in adding it as |
Yeah, I can add that no problem. I tend to use things like Actually there is a small problem with it I realise, AWS's provided:al2 ships with Golang 1.15 so in my local environment I've been using |
@moskyb anything else you need from me on this? How does that Dockerfile look? What's the release process from here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have a couple of comments on the dockerfile, but i'm also happy to merge this as is and make the changes myself - i'm aware of how annoying it might be for someone from some other company to say "yeah include that other thing, that looks great!" and then pick it to pieces at the next turn 😅
re: the release process, once i have your okay, i'll merge it and make a release against this repo, which will publish the new versions of the handlers, binaries etc. |
Co-authored-by: Ben Moskovitz <[email protected]>
You are free to merge it at any time! Up to you whether the LAMBDA_VERSION is a blocker or a nit. |
OK should be good to go now. |
Awesome! Thanks so much for your contribution @ohookins, i'm really happy with where we got to :) |
I've been scratching my head the last few days about this. The daemon itself works standalone, and will even do so packaged as a Docker image and used with lambda, but will run immediately and exit - not suitable for lambda usage. If you build the
lambda
subdirectory directly and produce a binary (presumably what is provided ashandler.zip
in release) it seems to work when packaged as a zip file but not when packaged as a Docker image.I couldn't seem to determine what was causing problems but it's clearly:
main()
) is executed, but theHandler
function is never called by the AWS lambda runtime.After trying a few different things, it seems like updating to a later version of the AWS Lambda SDK solves the issue. I suspect some subtle interoperation between the runtime and the specific version of this SDK is not working - after all, it's almost 4 years old at this point.