|
Voiced by Amazon Polly |
A AWS Lambda has long provided a platform for running functions without worrying about infrastructure, but some workloads require specialized hardware or cost-optimization strategies. To bridge this gap, AWS now offers Lambda Managed Instances, enabling Lambda functions to run on Amazon EC2 while preserving the serverless experience.
This new capability allows organizations to leverage the best of both worlds: the flexibility and scalability of EC2 with the operational simplicity of Lambda.
Start Learning In-Demand Tech Skills with Expert-Led Training
- Industry-Authorized Curriculum
- Expert-led Training
What are Lambda Managed Instances?
Lambda Managed Instances allow you to run Lambda functions on EC2 instances that are fully managed by AWS. This means AWS handles instance provisioning, OS patching, load balancing, and auto-scaling, while you focus on your code. You can select instance types optimized for specific workloads, such as high-bandwidth networking or cost-efficient compute, without taking on additional operational responsibility.
Each instance can handle multiple concurrent requests, reducing overall compute usage by sharing resources across invocations. With access to EC2 pricing models such as Compute Savings Plans and Reserved Instances, businesses can achieve up to 72% cost savings compared to On-Demand pricing.
Benefits of Running Lambda on EC2
Some of the key advantages include:
- Mult concurrency Support: Each execution environment can handle multiple requests, improving resource efficiency.
- Operational Simplicity: AWS manages scaling, security updates, and load balancing automatically.
- Cost Optimization: Use EC2 pricing commitments to reduce steady-state workload costs.
- Flexible Hardware Choices: Access specialized processors, including Graviton4 instances, to optimize price-performance.
Configuring Your Capacity Provider
To get started, create a capacity provider in the Lambda console. This lets you define networking, subnets, security groups, instance types, and scaling parameters. You can also set memory-to-vCPU ratios and auto-scaling policies to match workload requirements.
Capacity providers can be configured via:
- Lambda Console
- AWS CLI
- Infrastructure as Code tools like AWS CloudFormation, AWS SAM, AWS CDK, or Terraform
Working with Lambda Managed Instances
Once the capacity provider is created, you can attach your Lambda functions to it. Lambda automatically routes requests to pre-provisioned environments, eliminating cold starts and ensuring consistent performance. Built-in multi-concurrency allows multiple requests per environment, maximizing efficiency.
When traffic spikes, AWS automatically launches new instances within tens of seconds, while circuit breakers prevent resource overload. The entire workflow remains serverless, with AWS handling:
- Instance provisioning
- OS and runtime patching
- Security updates
- Load balancing
- Auto-scaling
Instances have a maximum 14-day lifetime to meet security and compliance standards, while function code, IAM permissions, and monitoring remain unchanged.
Getting Started
Lambda Managed Instances is available today via the Lambda console, AWS CLI, or AWS SDKs in these regions:
- US East (N. Virginia)
- US East (Ohio)
- US West (Oregon)
- Asia Pacific (Tokyo)
- Europe (Ireland)
Pricing includes:
- Standard Lambda request charges ($0.20 per million invocations)
- EC2 instance charges (with applicable Compute Savings Plans or Reserved Instances)
- A 15% compute management fee for AWS operational management
The initial release supports Node.js, Java, .NET, and Python, with additional runtimes coming soon. Existing Lambda functions can be migrated without code changes if they are thread-safe for Mult concurrency.
If you are interested in diving deeper into the world of AWS serverless, you can check out Developing Serverless Solutions on AWS training courses to explore advanced concepts and use cases.
Serverless Meets EC2
AWS Lambda Managed Instances represent a significant expansion of Lambda’s capabilities. Organizations can now run workloads that require specialized EC2 hardware or optimize costs while maintaining a serverless operational model. Whether for high-traffic applications or Graviton4-optimized workloads, this new feature provides both flexibility and simplicity, empowering developers to focus on innovation rather than infrastructure.
Upskill Your Teams with Enterprise-Ready Tech Training Programs
- Team-wide Customizable Programs
- Measurable Business Outcomes
About CloudThat
CloudThat is an award-winning company and the first in India to offer cloud training and consulting services worldwide. As a Microsoft Solutions Partner, AWS Advanced Tier Training Partner, and Google Cloud Platform Partner, CloudThat has empowered over 850,000 professionals through 600+ cloud certifications winning global recognition for its training excellence including 20 MCT Trainers in Microsoft’s Global Top 100 and an impressive 12 awards in the last 8 years. CloudThat specializes in Cloud Migration, Data Platforms, DevOps, IoT, and cutting-edge technologies like Gen AI & AI/ML. It has delivered over 500 consulting projects for 250+ organizations in 30+ countries as it continues to empower professionals and enterprises to thrive in the digital-first world.
WRITTEN BY Nehal Verma
Nehal is a seasoned Cloud Technology Expert and Subject Matter Expert at CloudThat, specializing in AWS with a proven track record across Generative AI, Machine Learning, Data Analytics, DevOps, Developer Tools, Databases and Solutions Architecture. With over 12 years of industry experience, she has established herself as a trusted advisor and trainer in the cloud ecosystem. As a Champion AWS Authorized Instructor (AAI) and Microsoft Certified Trainer (MCT), Nehal has empowered more than 15,000 professionals worldwide to adopt and excel in cloud technologies. She holds premium certifications across AWS, Azure, and Databricks, showcasing her breadth and depth of technical expertise. Her ability to simplify complex cloud concepts into practical, hands-on learning experiences has consistently earned her praise from learners and organizations alike. Nehal’s engaging training style bridges the gap between theory and real-world application, enabling professionals to gain skills they can immediately apply. Beyond training, Nehal actively contributes to CloudThat’s consulting practice, designing, implementing and optimizing cutting-edge cloud solutions for enterprise clients. She also leads experiential learning initiatives and capstone programs, ensuring clients achieve measurable business outcomes through project-based, real-world engagements. Driven by her passion for cloud education and innovation, Nehal continues to champion technical excellence and empower the next generation of cloud professionals across the globe.
Login

March 5, 2026
PREV
Comments