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.
🌐
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, ...
🌐
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
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.
🌐
Amazon Web Services
aws.amazon.com › products › compute › aws lambda
Serverless Function, FaaS Serverless - AWS Lambda - AWS
4 days ago - These applications must respond almost in real time to customer activity and scale seamlessly to meet unpredictable demands all while maintaining robust security. With AWS Lambda, you can build and operate powerful web and mobile back-ends that deliver consistent, uninterrupted service to end ...
🌐
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.
Find elsewhere
🌐
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).
🌐
Amazon Web Services
aws.amazon.com › compute › aws lambda › faqs
AWS Lambda – FAQs
4 days ago - Please see our documentation for a complete list of event sources. AWS Lambda natively supports Java, Go, PowerShell, Node.js, C#, Python, and Ruby code, and provides a Runtime API which allows you to use any additional programming languages to author your functions.
🌐
Wikipedia
en.wikipedia.org › wiki › AWS_Lambda
AWS Lambda - Wikipedia
1 week 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 › 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.
🌐
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)
🌐
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.
🌐
GeeksforGeeks
geeksforgeeks.org › devops › introduction-to-aws-lambda
AWS Lambda - GeeksforGeeks
January 12, 2026 - It runs your code only when needed, scales automatically, and charges you only for the milliseconds used. To understand Lambda, you must understand two key terms: Serverless: This doesn't mean there are no servers; it means you don't manage them. AWS handles provisioning, patching, OS updates, and scaling.
🌐
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 ...
🌐
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.