There are two solutions to that:
- 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.
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%
Videos
06:41
Learn AWS Lambda in 6 minutes - YouTube
37:31
AWS Lambda Tutorial for Beginners in C# - YouTube
12:28
AWS Lambda Hands-On Lab (2026 Edition) — Build & Deploy Serverless ...
13:34
AWS Lambda Introduction - What is it and Why is it Useful? - YouTube
33:42
AWS Lambda + C# .NET Core: Power Your Amazon Connect Contact Center!
21:36
Getting Started with AWS Lambda and .NET | Introducing Serverless ...
Reddit
reddit.com › r/aws › is it possible to compile and execute a c program using aws lambda?
r/aws on Reddit: Is it possible to compile and execute a C program using AWS lambda?
March 10, 2020 -
I am working on a personal project of making an online IDE . And i have implemented the compilation and Execution using a EC2 instance. But, Recently came to know about Lambda and i am wondering if its possible to do the same (compile and execute the c program and return the output ). IF not what would be the better way to approach this.On EC2 i went for a nodejs application to get the code from user and then send the output as the response to the user.
Top answer 1 of 5
4
Yes, AWS allows you to create a custom runtime for any programming language. You just need to provide a bootstrap script that takes the Lambda event and passes it into your executable. https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html As for “compiling on Lamda”, the function is created with a ZIP archive, so you actually would compile your C code into a single binary and ZIP that up, and the Lambda platform takes care of unzipping + running your executable. You can upload the ZIP via the AWS console or AWS CLI. Here Amazon’s sample in C++, take a look and try adapting that for your needs? https://github.com/awslabs/aws-lambda-cpp
2 of 5
4
Why would you compile on lambda? Why not compile as part of your pipeline and deploy the binary to lambda for execution?
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.
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.
Amazon Web Services
docs.aws.amazon.com › aws lambda › developer guide › code examples for lambda using aws sdks
Code examples for Lambda using AWS SDKs - AWS Lambda
Code examples that show how to use Lambda with an AWS SDK.
AWS
docs.aws.amazon.com › aws sdk code examples › code library › code examples by sdk using aws sdks › code examples for sdk for c++ › lambda examples using sdk for c++
Lambda examples using SDK for C++ - AWS SDK Code Examples
Code examples that show how to use AWS SDK for C++ with Lambda.
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.
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 ·