Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I try out AWS Lambda locally without a AWS account?

I would like to deploy a fully localized AWS Lambda Serverless application on my home server (ironic I know), to evaluate AWS.
I saw that it was possible to deploy lambda with a docker container, although I found no Information on how to set that up. So is it even possible to try out AWS lambda without creating a AWS account?

like image 885
user2741831 Avatar asked Mar 02 '23 23:03

user2741831


2 Answers

AWS have a solution with SAM (Serverless Application Model) which includes a feature to run your Lambda locally.

It will pull down an official Docker image created by the AWS team that will be able to run the Docker runtime. Whilst this will enable you test out some of the functionality of a simple Lambda function, you will not be able to use other Lambda functions that are reliant on configuration within AWS such as Lambda Layers.

Once you have setup your AWS account its also worth knowing that AWS Free-Tier grants 1 million free Lambda invocations per month and this is a lifetime offer (does not expire).

like image 175
Chris Williams Avatar answered Mar 04 '23 12:03

Chris Williams


You may try using Chalice Framework. It is a microservice framework and easier than other options available.

  • You will not have to use docker.
  • You can test Lambda Functions locally by setting a local API with simple command as chalice local.
like image 39
amsh Avatar answered Mar 04 '23 12:03

amsh