0 votes
1 view
in AWS by (16.7k 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 (39.6k 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.

...