SAM中的AWS Lambda C ++运行时 [英] AWS lambda C++ runtime in SAM

查看:75
本文介绍了SAM中的AWS Lambda C ++运行时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人有使用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/

推荐答案

我建议使用

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 ++运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆