aws-lambda-managed-instances

Evaluates, configures, and migrates Lambda workloads to AWS Lambda Managed Instances on EC2.

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/sakicodes/BuildFestHackathon26 --skill aws-lambda-managed-instances-sakicodes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-lambda-managed-instances
Source: https://github.com/sakicodes/BuildFestHackathon26/tree/main/.agents/skills/aws-lambda-managed-instances
Command: npx skills add https://github.com/sakicodes/BuildFestHackathon26 --skill aws-lambda-managed-instances-sakicodes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve? Deciding whether and how to move Lambda functions to AWS Lambda Managed Instances (LMI) requires cost analysis, concurrency-safe code review, capacity provider configuration, and infrastructure setup, which is complex and error-prone without structured guidance. ## Core Features & Use Cases - Workload Assessment & Cost Comparison: Evaluates traffic patterns, runtimes, and spend to determine if LMI beats standard Lambda, using the LMI Pricing Calculator and Savings Plans analysis. - Configuration & Infrastructure Setup: Provides instance family selection, memory-to-vCPU ratios, IAM roles, VPC endpoints, CLI commands, and SAM templates for capacity providers. - Migration & Troubleshooting: Supplies runtime-specific thread-safety checklists (Node.js, Java, .NET, Python), before/after code patterns, and fixes for throttling, stuck deployments, and scaling issues. - Use Case: A team running a steady 100M requests/month Node.js API on standard Lambda uses this Skill to compare costs, configure a Graviton capacity provider, refactor shared global state, and cut over gradually with weighted aliases. ## Quick Start Ask the assistant to evaluate whether your Lambda function is a good fit for Lambda Managed Instances and build a cost comparison.

Frequently Asked Questions about aws-lambda-managed-instances

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate a Lambda function to Lambda Managed Instances?

Assess traffic and costs first, then create a capacity provider with VPC config and an operator IAM role, attach it to the function, and publish a version to trigger provisioning. Review code for concurrency safety and shift traffic gradually with weighted aliases.

When is Lambda Managed Instances cheaper than standard Lambda?

LMI becomes cost-competitive at roughly 50-100M+ requests per month with steady, predictable traffic. It is not cheaper for low-volume, bursty, very short-duration, or scale-to-zero workloads because three instances run continuously at minimum.

Does Python code need thread-safety changes for Lambda Managed Instances?

No. Python on LMI uses process-based isolation, so globals and module-level state are not shared between invocations. You only need to handle shared /tmp file paths, per-process connection pools, and memory sizing for multiplied processes.

Why is my Lambda Managed Instances capacity provider stuck in CREATING?

The most common cause is private subnets missing a NAT gateway route, since instances need outbound internet access for image pulls and Lambda service communication. Also verify subnets span 3+ AZs with available IPs and the operator role has required permissions.

What are the concurrency limits per runtime on Lambda Managed Instances?

Maximum concurrency per vCPU is 64 for Node.js, 32 for Java and .NET, and 16 for Python. The actual setting is PerExecutionEnvironmentMaxConcurrency per execution environment, and CPU-bound workloads should use 1-2 per vCPU.

Can Lambda Managed Instances scale to zero?

No. LMI requires a minimum of three execution environments for AZ resiliency and cannot scale to zero. If your workload needs to pay nothing when idle, standard Lambda is the better choice.