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.
Videos
44:07
AWS Lambda Full Tutorial | Trigger, Deploy & Automate Like a Pro!
14:39
AWS Lambda Tutorial 101 For Beginners | What is AWS Lambda? - YouTube
37:31
AWS Lambda Tutorial for Beginners in C# - YouTube
06:41
Learn AWS Lambda in 6 minutes - 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
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
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.
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.
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.
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.
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
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)
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.
AWS
docs.aws.amazon.com › aws sdk for c++ › developer guide › sdk for c++ code examples › lambda examples using sdk for c++
Lambda examples using SDK for C++ - AWS SDK for C++
Code examples that show how to use AWS SDK for C++ with Lambda.