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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !