问题描述
是否有人有使用C ++运行时使用SAM打包AWS lambda函数的分步教程,因此我可以在本地运行它? C ++不是使用sam init --runtime
支持的语言之一,我无法从"> https://aws.amazon.com/blogs/compute/introducing-the-c-lambda-runtime/
Does anyone have a step-by-step tutorial on using SAM to package an AWS lambda function using the C++ runtime so I can run it locally? C++ is not one of the languages supported using sam init --runtime
and I cannot work out the steps needed to package the Hello World function from https://aws.amazon.com/blogs/compute/introducing-the-c-lambda-runtime/
推荐答案
我建议使用 CloudFormation程序包功能可以实现您想要的功能.
I'd recommend using CloudFormation package functionality to achieve what you're looking for.
请记住,由于动态依赖性,您的Lambda代码必须在AWS Linux
上以二进制形式构建. Lambda函数在基于AWS Linux
的容器中运行.
Remember that your Lambda code must be built to binary form on AWS Linux
because of dynamic dependencies. Lambda functions run in AWS Linux
based containers.
这篇关于SAM中的AWS Lambda C ++运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!