AWS Agents For Devsecops
AWS Core
Core Skills · AWS…
Messaging And Streaming Skills
Migration And Modernization Skills
Networking And Content Delivery Skills
Security And Identity Skills
Serverless Skills
System Table Skills
Web And Mobile Development
120 chapters · 648 min
Serverless Skills
Chapter 103 of 120
Evaluates, configures, and migrates workloads to AWS Lambda Managed Instances (LMI).
6 minutes · 1,262 words · 20 sections
Runs Lambda functions on EC2 instances in the user’s account while AWS manages provisioning, patching, scaling, routing, and load balancing. Combines Lambda’s developer experience with EC2’s pricing and hardware options.
Works best with the AWS MCP server (opens in a new tab) for sandboxed CLI execution and audit logging. All guidance also works with standard AWS CLI or SAM CLI.
Note: Confirm regional availability, quotas, and instance type offerings against current AWS documentation before production deployment.
| Signal | LMI is a strong fit | Standard Lambda is better |
|---|---|---|
| Traffic | Steady, predictable, 50M+ req/mo | Bursty, unpredictable, long periods of no traffic |
| Cost | Duration-heavy spend at scale | Low or sporadic invocations |
| Cold starts | Unacceptable (LMI eliminates for provisioned capacity) | Tolerable |
| Compute | Latest CPUs, specific families, high network bandwidth, GPU requirements | Standard Lambda memory/CPU sufficient |
| Isolation | Dedicated EC2 instances in your account, full VPC control | Shared Firecracker micro-VMs acceptable |
| Scale-to-zero | Does not scale to zero but can create custom schedules with AWS provided solutions | Required (pay nothing when idle) |
| Code readiness | Thread-safe (Node.js/Java/.NET) or any Python code | Non-thread-safe code, expensive to change |
Read ONLY the single reference file that matches the user’s task. Do not preload multiple references.
| User need | Action |
|---|---|
| Cost comparison, pricing analysis, Savings Plans, Reserved Instances | Read cost-comparison.md (opens in a new tab) |
| Instance types, memory sizing, vCPU ratios, scaling tuning, capacity provider config | Read configuration-guide.md (opens in a new tab) |
| Thread safety, concurrency model, code review checklist, multi-concurrency readiness | Read thread-safety.md (opens in a new tab) |
| Before/after code examples, runtime-specific migration, connection pooling | Read |
Troubleshooting quick facts (always mention when diagnosing issues):
Gather these signals before recommending:
/tmp paths? Per-invocation DB connections?When recommending LMI, ALWAYS mention: minimum 3 execution environments for AZ resiliency (cannot go below 3 in production).
REQUIRED: Present a cost comparison before recommending LMI.
Rule of thumb: LMI becomes cost-competitive at 50-100M+ req/month with steady traffic. Use the LMI Pricing Calculator (opens in a new tab) for accurate comparisons.
Architectures: [arm64] in the function configuration to match.Review code for concurrency safety. LMI runs multiple invocations concurrently per execution environment:
/tmp conflicts and memory sizing.| Resource | Limit |
|---|---|
| Memory | 2 GB min, 32 GB max |
| Execution environments | 3 minimum (MinExecutionEnvironments, AZ resiliency) |
| Instance lifespan | 14 days (auto-replaced) |
| Concurrency/vCPU | 64 (Node.js), 32 (Java/.NET), 16 (Python) |
| Runtimes | Node.js 22+, Java 21+, .NET 8+, Python 3.13+, Rust (provided.al2023) |
| Instance families | C, M, R (.large and up) |
| Scaling | Burst headroom equals unused capacity from TargetResourceUtilization; new instances launch within minutes |
aws:SourceAccount and aws:SourceArn conditions to trust policies to prevent confused deputy attacks.| File | Content |
|---|---|
| cost-comparison.md (opens in a new tab) | Pricing analysis, break-even calculations, Savings Plans/RI impact |
| configuration-guide.md (opens in a new tab) | Instance selection, memory ratios, scaling tuning, capacity provider config |
| thread-safety.md (opens in a new tab) | Concurrency model per runtime, code review checklist, Powertools compatibility |
| migration-patterns.md |
Install this repository
npx skills add aws/agent-toolkit-for-aws/plugin marketplace add aws/agent-toolkit-for-awsSkills install per repository, not per chapter — the CLI has no documented per-skill form, so we do not print one.
Evaluates, configures, and migrates workloads to AWS Lambda Managed Instances (LMI). Runs Lambda functions on EC2 instances in the user's account while AWS manages provisioning, patching, scaling, routing, and load balancing. Triggers when queries mention Lambda Managed Instances, LMI, capacity providers, multi-concurrent execution environments, EC2-backed Lambda, persistent Lambda instances, PerExecutionEnvironmentMaxConcurrency, CapacityProviderConfig, cold start elimination via dedicated instances, migrating standard Lambda to managed instances, or cost comparison between standard Lambda and LMI with Savings Plans or Reserved Instances.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 10 August 2026.SKILL.md, not by matching a directory convention. 17 distinct layouts observed: plugins/aws-agents-for-devsecops/skills/*/SKILL.md, plugins/aws-agents/skills/*/SKILL.md, plugins/aws-core/skills/*/SKILL.md, skills/core-skills/*/SKILL.md, skills/specialized-skills/analytics-skills/*/SKILL.md, skills/specialized-skills/database-skills/*/SKILL.md, skills/specialized-skills/ec2-skills/*/SKILL.md, skills/specialized-skills/messaging-and-streaming-skills/*/SKILL.md, skills/specialized-skills/migration-and-modernization-skills/*/SKILL.md, skills/specialized-skills/networking-and-content-delivery-skills/*/SKILL.md, skills/specialized-skills/operations-skills/*/SKILL.md, skills/specialized-skills/resilience-skills/*/SKILL.md, skills/specialized-skills/security-and-identity-skills/*/SKILL.md, skills/specialized-skills/serverless-skills/*/SKILL.md.| IAM roles, VPC setup, CLI commands, SAM template, CDK example | Read infrastructure-setup.md (opens in a new tab) |
| Errors, throttling, debugging, stuck deployments | Read troubleshooting.md (opens in a new tab) |
| Before/after code by runtime, connection pooling, gradual cutover |
| infrastructure-setup.md (opens in a new tab) | IAM roles, VPC setup, SAM templates, CLI commands |
| troubleshooting.md (opens in a new tab) | Common errors, throttling, debugging, stuck deployments |
skills/specialized-skills/storage-skills/*/SKILL.mdskills/specialized-skills/system-table-skills/*/SKILL.mdskills/specialized-skills/web-and-mobile-development/*/SKILL.mdh1 and no skipped levels:.claude-plugin/marketplace.json by Amazon Web Services, declaring 4 plugins. It is read for editorial metadata only — never as the skill index, which is always the repository tree./aws/agent-toolkit-for-aws.md, and each chapter at its own .md URL.7 files · 25 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of chapter 103.
Documentation the agent loads on demand, rather than up front.
Templates, schemas and fixtures the skill draws on.