dkz
dkz

Reputation: 79

Run AWS Lambda inside Docker in local

I'm new to AWS and for learning purpose I created a free AWS account. I don't want to install all dependencies, packages and configure them with my test account in my pc until I learn them well. So I planned to create a docker image so I can do configurations later in my pc. But I can't find any good example how to set up docker image for AWS Lambda. Can you please help me to set up docker image?

p.s I'm using NodeJs

Upvotes: 1

Views: 4352

Answers (3)

Marcin
Marcin

Reputation: 238209

Recent AWS blog describes how to do it:

Basically you can run already made docker image for that:

This is the same docker image used by AWS's SAM (Serverless Application Model) when you test your lambda function locally. Thus this is the closest you can get to the real lambda environment.

Upvotes: 3

ItayB
ItayB

Reputation: 11337

Check out https://github.com/localstack/localstack - A fully functional local AWS cloud stack (Lambda as well).

Upvotes: 3

GiorgosDev
GiorgosDev

Reputation: 1767

The solution will depend on language you are going to use for lambdas. Try some tutorials, i.e. the next descibes how to simulate lambda for python: https://aws.amazon.com/premiumsupport/knowledge-center/lambda-layer-simulated-docker/

Upvotes: 2

Related Questions