Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in AWS by (19.1k points)

Is there any way that I can test aws lambda in local? I know there is a package whose name is 'localstack' but seems like there are not many people who tried it.

1 Answer

0 votes
by (44.4k points)

Run the Lambda functions normally like any python script: 

if __name__ == "__main__":

    event = []

    context = []

    lambda_handler(event, context)

Keep the correct python version installed and also the required dependencies, if you use virtual environments.

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories

...