There are two solutions to that:

  1. Develop your own custom lambda runtime for that. AWS provides some guides and examples of how to do it for C++ in Introducing the C++ Lambda Runtime
  • Use lambda container images which allow you to run docker containers (properly prepared) for your function.
Answer from Marcin on Stack Overflow
🌐
AWS
aws.amazon.com › blogs › compute › introducing-the-c-lambda-runtime
Introducing the C++ Lambda Runtime | AWS Compute Blog
February 14, 2020 - Today, AWS Lambda announced the availability of the Runtime API. The Runtime API allows you to write your Lambda functions in any language, provided that you bundle it with your application artifact or as a Lambda layer that your application uses. As an example of using this API and based on the customer demand, AWS is releasing a reference implementation of a C++ runtime for Lambda.
🌐
GitHub
github.com › PauloMigAlmeida › aws-lambda-c-runtime
GitHub - PauloMigAlmeida/aws-lambda-c-runtime: AWS Lambda C Runtime
C implementation of the lambda runtime API. Most implementation details of this project is based on Marco Magdy's nice work on the awslabs/aws-lambda-cpp repository.
Starred by 22 users
Forked by 5 users
Languages   C 86.9% | Shell 8.6% | CMake 4.5% | C 86.9% | Shell 8.6% | CMake 4.5%
🌐
AWS
aws.amazon.com › blogs › compute › announcing-c-sharp-support-for-aws-lambda
Announcing C# Support for AWS Lambda | Amazon Web Services
June 9, 2022 - Today, we’re excited to announce C# as a supported language for AWS Lambda! Using the new, open source .NET Core 1.0 runtime, you can easily publish C# code to AWS Lambda from a variety of popular .NET tools.
🌐
Serverless Forums
forum.serverless.com › serverless framework
AWS lambda in any language, such as C, and speed of GO - Serverless Framework - Serverless Forums
February 24, 2018 - I’ve just noticed that there is enough info in the Go run-time support for AWS Lambda to show you how to support any language in Lambda. The source for the Go run-time is here: https://github.com/aws/aws-lambda-go When you make a Go function for AWS Lambda it actual compiles down to an x64 Linux binary.
🌐
AWS
docs.aws.amazon.com › lambda
AWS Lambda Documentation
Free delivery on millions of items with Prime. Low prices across earth's biggest selection of books, music, DVDs, electronics, computers, software, apparel & accessories, shoes, jewelry, tools & hardware, housewares, furniture, sporting goods, beauty & personal care, groceries & just about anything else.
Find elsewhere
🌐
Amazon Web Services
docs.aws.amazon.com › aws lambda › developer guide › what is aws lambda?
What is AWS Lambda? - AWS Lambda
January 31, 2026 - Lambda is a compute service that you can use to build applications without provisioning or managing servers.
🌐
DEV Community
dev.to › aws-builders › building-aws-lambda-functions-ogb
Building AWS Lambda Functions - DEV Community
March 23, 2025 - In order to build something that ... and see the result as fast as possible. Developing locally reduces this feedback loop and you can iterate faster. Now enter AWS Lambda....
🌐
Tutorials Dojo
tutorialsdojo.com › home › aws › exploring c++ with aws lambda custom runtime
Exploring C++ with AWS Lambda Custom Runtime - Tutorials Dojo
June 24, 2024 - AWS Lambda is a great service for running code without worrying about server management. While it traditionally supports languages like Python, Node.js, and Java, AWS now allows you to run code in any language using custom runtimes.
🌐
Quora
quora.com › Why-does-Amazon-AWS-Lambda-not-support-C-C++
Why does Amazon AWS Lambda not support C/C++? - Quora
Answer (1 of 2): There is no official “reason” of course, and I am sure AWS would love to support as many languages as possible, but prioritizing is key here. For every new language AWS supports they have to support a new runtime environment (you can read a bit more about that in a blog ...
🌐
Amazon Web Services
docs.aws.amazon.com › aws lambda › developer guide › building lambda functions with c#
Building Lambda functions with C# - AWS Lambda
2 weeks ago - To develop and build your Lambda functions, you can use any of the commonly available .NET integrated development environments (IDEs), including Microsoft Visual Studio, Visual Studio Code, and JetBrains Rider. To simplify your development experience, AWS provides a set of .NET project templates, as well as the Amazon.Lambda.Tools command line interface (CLI).
🌐
Wikipedia
en.wikipedia.org › wiki › AWS_Lambda
AWS Lambda - Wikipedia
4 days ago - Rust and Go generally exhibit lower cold start times in AWS Lambda compared to Java and C# because they compile to native static binaries, eliminating the need for a virtual machine (JVM or .NET CLR) and reducing runtime initialization overhead. Go has some minimal runtime initialization, including garbage collection and goroutine management, but its impact on cold start time is relatively low.
🌐
AWS
aws.amazon.com › blogs › compute › optimizing-aws-lambda-extensions-in-c-and-rust
Optimizing AWS Lambda extensions in C# and Rust | Amazon Web Services
April 13, 2023 - This post demonstrates techniques that can be used for running and profiling different types of Lambda extensions. This post focuses on Lambda extensions written in C# and Rust.
🌐
W3Schools
w3schools.com › aws › aws_cloudessentials_awslambda.php
AWS Lambda
Upload code: Deploy your code as a Lambda function · Set triggers: Configure events to trigger your code (AWS services, HTTP requests, schedules)
🌐
Nodeaddons
nodeaddons.com › c-addons-as-aws-lambda-functions
C++ Addons as AWS Lambda functions
August 17, 2016 - As a compute service to run your code in response to HTTP requests using Amazon API Gateway or API calls made using AWS SDKs. Lambda is a cool platform, but it only supports a few languages - Java, Node.js, and Python. So… what if you want to expose some C++ code using Lambda?
🌐
AWS
docs.aws.amazon.com › aws cloudformation › template reference › aws lambda › aws::lambda::function
AWS::Lambda::Function - AWS CloudFormation
For a complete introduction to Lambda functions, see What is Lambda? in the Lambda developer guide. To declare this entity in your CloudFormation template, use the following syntax: { "Type" : "AWS::Lambda::Function", "Properties" : { "Architectures" : [ String, ...
🌐
Conan.io
conan.io › center › recipes › aws-lambda-cpp
aws-lambda-cpp - Conan 2.0: C and C++ Open Source Package Manager
C++ implementation of the AWS Lambda runtime · awslambda · Use it · Loading... Packages Dependencies · Loading... Versions Audit Badges · Apache-2.0 · View recipe on GitHub · github.com/awslabs/aw... 2024-04-09 · 966127a0ff2af0c16fa... Linux · Windows ·