How to compile c++ library to be used in AWS Lambda?

前提是你 提交于 2019-12-23 16:03:14

问题


I haven't tried it yet, but I know you can supposedly run AWS Lambda functions in Java and reference C++ libraries from them. How do you compile the C++?


回答1:


I was struggling to do exactly what you ask only a few days ago when I've stumbled upon this article: http://www.glfrc.com/2018/01/19/aws-lambda-with-java-and-native-code/

You basically have 2 options:

  • on an Amazon Linux EC2 machine.
  • on any machine running docker by using the Amazon Linux docker image.

The article explains the second procedure, which is the one I've gone for as well. The first one should be similar. You start an EC2, install the same packages, upload your code and compile.



来源:https://stackoverflow.com/questions/48722922/how-to-compile-c-library-to-be-used-in-aws-lambda

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!