'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?



Solution 1:[1]

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).

Solution 2:[2]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Chris Williams
Solution 2 amsh