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/
Asked
Active
Viewed 556 times
1

David G
- 5,408
- 1
- 23
- 19
-
Did you find my answer helpful? – adamkonrad Mar 12 '19 at 15:07
-
I have a similar problem, but I described with a few more details. Have a look here https://stackoverflow.com/questions/58451803/how-to-run-a-c-aws-lambda-function-locally-with-sam – User12547645 Oct 18 '19 at 14:24
1 Answers
0
I'd recommend using CloudFormation package functionality to achieve what you're looking for.
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.

adamkonrad
- 6,794
- 1
- 34
- 41
-
1I have a similar problem, but I described with a few more details. Have a look here https://stackoverflow.com/questions/58451803/how-to-run-a-c-aws-lambda-function-locally-with-sam – User12547645 Oct 18 '19 at 14:24