Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

use aws sdk with custom endpoint that points to local docker lambda container #30

Closed
varunudacity opened this issue Apr 19, 2017 · 4 comments

Comments

@varunudacity
Copy link

I'm using the go aws sdk. It allows me to customize the endpoint for lambda, e.g., localhost:8000. Will the docker container given here respond to aws lambda invoke commands, as expected, if I do this?

@derickson82
Copy link

+1

@joovel
Copy link

joovel commented Feb 6, 2018

I threw something together to do this but it's heavily dependent on our environment. We use node. The basic idea is that I use the Docker Remote API to run this image, mounting my code at /var/task. The HTTP server has to respond to POST on /:date/functions/:functionName/invocations.

Another example is here: https://github.com/luisfarzati/docker-lambda-api-server

@binarymist
Copy link

binarymist commented Nov 14, 2018

Did it work @varunudacity?

I'm just getting started with the aws sdk, and I need to dev and test lambda functions locally, It seems like this project may work for that? I'm seeing here (https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/specifying-endpoints.html) that I can specify an endpoint, not sure how to do this for lambda though yet? Any tips on how to set the lambda endpoints if I'm going to dev and test on docker-lambda? Is this how docker-lambda is supposed to be used?

Thanks.

@binarymist
Copy link

Seems like aws-sam-cli works well enough

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants