[英]How to setup PyCharm to develop AWS Lambda function on local machine?
I am looking forward to developing some AWS lambda functions in python using PyCharm. 我期待使用PyCharm在python中开发一些AWS lambda函数。 How can I setup my IDE to develop and test the function locally?
如何设置我的IDE以在本地开发和测试功能? Can experts guide how to set it up?
专家可以指导如何设置吗? Any links or relevant tutorials will be really helpful.
任何链接或相关教程将非常有帮助。
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. 从re:Invent 2018主题演讲的公告开始, Jetbrains现在提供AWS工具包 ,该工具包允许本地和远程开发Lambda函数。
Despite some lingering issues it works quite well. 尽管存在一些挥之不去的问题,它仍然运行良好。
User exan has provided the link on AWS' site here 用户exan在此处的 AWS网站上提供了链接
There is also a blog post when using PyCharm on MacOS 在MacOS上使用PyCharm时也有一篇博客文章
Toolkit page on Jetbrains website Jetbrains网站上的工具包页面
UPDATE April 2019: Jetbrains has been very responsive and active in fixing any issues. 2019年4月更新:Jetbrains积极响应并积极解决任何问题。 Issues with credentials and templates seem resolved and it's quite a joy to work with.
凭据和模板的问题似乎已解决,并且可以很愉快地工作。
Directly go through the page-> https://medium.com/@bezdelev/how-to-test-a-python-aws-lambda-function-locally-with-pycharm-run-configurations-6de8efc4b206 直接通过页面-> 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.