We compared the execution behavior of a standard Lambda function against our new Managed Instance setup to highlight the architectural differences.
Comparing Compute Models: AWS Lambda vs. Amazon EC2
Getting started is straightforward:
Key Capabilities of AWS Lambda Managed Instances
Runtime Support
Availability
Benefits and Use Cases of AWS Lambda Managed Instances
Pricing Model
Project Showcase
1. Creating IAM Role
AWSLambdaManagedEC2ResourceOperator. Check the box next to it.
LambdaManagedInstanceOperatorRole). Review and click “Create role”.2. Configuring the Capacity Providers
lambda-capacity.
arm64 (Graviton) and Allowed instance types to m6g.large (This ensures Graviton-specific optimization).
Manual and Target Utilization to 70% (The utilization percentage AWS will try to maintain).
Default VPC ID for your region and the single subnet named lambda capacity. Use the VPC’s default security group. For the Infrastructure operator role, select your LambdaManagedInstanceOperatorRole.
CREATING to ACTIVE.3. Creating Lambda Function
lambda-managed-iarm64
ThreadPoolExecutor) into the code editor and click “Deploy”.
NONE for Auth type for a simple test.
2048 MB (2 GB).
Capacity provider. Select the ARN of your lambda-capacity for Capacity Provider.
PerExecutionEnvironmentMaxConcurrency to 2 (This is the 2:1 ratio you requested, as the m6g.large has 2 vCPUs). Set Memory/vCPU to 2048 MB (This ensures that 2 executions share the 2GB memory total).
4. Testing Results
FileNotFoundError with multiprocessing.Pool or is inefficient with ThreadPoolExecutor.
total_wall_clock_time is significantly lower than the sum_of_all_task_time (due to true multi-process/multithread parallel execution).m6g.large instance.AWS Lambda Managed Instances: A New Era for Serverless Computing
References
AWS Lambda Managed Instances: Serverless Simplicity with EC2 Control
AWS Lambda Managed Instances marks a significant evolution in serverless computing. For years, standard Lambda was the default for running code without infrastructure management, but it offered limited control over the underlying hardware. This new capability changes that by combining serverless simplicity with Amazon EC2 flexibility.
Announced at AWS re:Invent 2025, this feature enables Lambda functions to run on designated Amazon EC2 instances. You choose the hardware configuration, while AWS manages the infrastructure. This approach combines the simplicity of serverless with the control of dedicated resources.
Previously, architects chose between two models, each with significant trade-offs:
AWS Lambda Managed Instances provides a middle ground. You define a Capacity Provider with your chosen EC2 instance family, and AWS manages the instance lifecycle within your account.
This feature addresses specific architectural needs and is not intended as a default replacement for standard Lambda.
The billing structure shifts from a “duration-based” model to a “provisioned capacity” model.
Note: You are not charged for code execution duration. Costs depend on instance uptime and request volume.
As noted earlier, getting started with AWS Lambda Managed Instances is straightforward. In this section, we will walk through a practical, in-depth example of how to implement this new feature in a real-world scenario.
AWS Lambda Managed Instances signal a pivotal evolution in cloud computing, breaking the long-standing trade-off between agility and control. By merging the hands-off simplicity of serverless with the power and specificity of EC2, organizations can now tailor their compute environments to their most demanding workloads without sacrificing operational efficiency. This innovation empowers teams to architect for scale, optimize for cost, and innovate faster—removing barriers that once constrained the most ambitious projects.
As the boundaries between traditional infrastructure and serverless continue to blur, Lambda Managed Instances stand as a testament to AWS’s commitment to customer-centric cloud evolution. For forward-looking teams, this isn’t just a new feature; it’s a strategic advantage and a catalyst for what’s next.
AWS, Azure, and GCP Certifications are consistently among the top-paying IT certifications in the world, considering that most companies have now shifted to the cloud. Earn over $150,000 per year with an AWS, Azure, or GCP certification!
Follow us on LinkedIn, YouTube, Facebook, or join our Slack study group. More importantly, answer as many practice exams as you can to help increase your chances of passing your certification exams on your first try!
View Our AWS, Azure, and GCP Exam Reviewers Check out our FREE coursesOur Community
~98%
passing rate
Around 95-98% of our students pass the AWS Certification exams after training with our courses.
200k+
students
Over 200k enrollees choose Tutorials Dojo in preparing for their AWS Certification exams.
~4.8
ratings
Our courses are highly rated by our enrollees from all over the world.




























