How to setup PyCharm to develop AWS Lambda function on local machine?

前端 未结 2 529
暗喜
暗喜 2021-01-05 11:54

I am looking forward to developing some AWS lambda functions in python using PyCharm. How can I setup my IDE to develop and test the function locally? Can experts guide how

相关标签:
2条回答
  • 2021-01-05 12:26

    Directly go through the page-> https://medium.com/@bezdelev/how-to-test-a-python-aws-lambda-function-locally-with-pycharm-run-configurations-6de8efc4b206

    pip install python-lambda-local
    python-lambda-local -f lambda_handler lambda_function.py event.json
    
    0 讨论(0)
  • 2021-01-05 12:34

    As of the announcement at the re:Invent 2018 keynote, Jetbrains now offers the AWS Toolkit which allows local and remote development of Lambda functions.

    Despite some lingering issues it works quite well.

    User exan has provided the link on AWS' site here

    There is also a blog post when using PyCharm on MacOS

    Toolkit page on Jetbrains website

    UPDATE April 2019: Jetbrains has been very responsive and active in fixing any issues. Issues with credentials and templates seem resolved and it's quite a joy to work with.

    0 讨论(0)
提交回复
热议问题