[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aws-labs-aws-lambda-managed-instances":3,"mdc--7kmzwc-key":42,"related-org-aws-labs-aws-lambda-managed-instances":1764,"related-repo-aws-labs-aws-lambda-managed-instances":1941},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":26,"repoUrl":27,"updatedAt":28,"license":29,"forks":30,"topics":31,"repo":37,"sourceUrl":40,"mdContent":41},"aws-lambda-managed-instances","configure AWS Lambda Managed Instances","Evaluate, configure, and migrate workloads to AWS Lambda Managed Instances (LMI). Triggers on: Lambda Managed Instances, LMI, capacity provider, multi-concurrency Lambda, dedicated instance Lambda, EC2-backed Lambda, cold start elimination, Graviton Lambda, instance type for Lambda, scheduled scaling for LMI, Lambda cost optimization with Reserved Instances or Savings Plans. Also trigger when users describe high-volume predictable workloads seeking cost savings, want to scale LMI capacity on a schedule, or compare Lambda vs EC2 for steady-state traffic. For standard Lambda without LMI, use the aws-lambda skill instead.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"aws-labs","AWS Labs","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Faws-labs.png","awslabs",[13,17,20,23],{"name":14,"slug":15,"type":16},"Performance","performance","tag",{"name":18,"slug":19,"type":16},"Deployment","deployment",{"name":21,"slug":22,"type":16},"Infrastructure","infrastructure",{"name":24,"slug":25,"type":16},"AWS","aws",831,"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagent-plugins","2026-07-12T08:39:07.007071",null,127,[32,33,34,25,35,36],"agent-plugins","agent-skills","agents","coding-agent-skills","coding-agents",{"repoUrl":27,"stars":26,"forks":30,"topics":38,"description":39},[32,33,34,25,35,36],"Agent Plugins for AWS equip AI coding agents with the skills to help you architect, deploy, and operate on AWS.","https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagent-plugins\u002Ftree\u002FHEAD\u002Fplugins\u002Faws-serverless\u002Fskills\u002Faws-lambda-managed-instances","---\nname: aws-lambda-managed-instances\ndescription: >\n  Evaluate, configure, and migrate workloads to AWS Lambda Managed Instances (LMI).\n  Triggers on: Lambda Managed Instances, LMI, capacity provider, multi-concurrency Lambda,\n  dedicated instance Lambda, EC2-backed Lambda, cold start elimination, Graviton Lambda,\n  instance type for Lambda, scheduled scaling for LMI, Lambda cost optimization with\n  Reserved Instances or Savings Plans. Also trigger when users describe high-volume\n  predictable workloads seeking cost savings, want to scale LMI capacity on a schedule,\n  or compare Lambda vs EC2 for steady-state traffic. For standard Lambda without LMI,\n  use the aws-lambda skill instead.\nargument-hint: \"[describe your workload or what you need help with]\"\nmetadata:\n  tags: lambda, lmi, managed-instances, ec2, capacity-provider, multi-concurrency, cost-optimization, scheduled-scaling\n---\n\n# AWS Lambda Managed Instances (LMI)\n\nRun Lambda functions on current-generation EC2 instances in your account while AWS manages provisioning, patching, scaling, routing, and load balancing. Combines Lambda's developer experience with EC2's pricing and hardware options.\n\nFor standard Lambda development, see [aws-lambda skill](..\u002Faws-lambda\u002F). For SAM\u002FCDK deployment, see [aws-serverless-deployment skill](..\u002Faws-serverless-deployment\u002F).\n\n## When to Load Reference Files\n\n- **Cost comparison**, **pricing analysis**, **Lambda vs LMI cost**, **Savings Plans**, or **Reserved Instances** -> see [references\u002Fcost-comparison.md](references\u002Fcost-comparison.md)\n- **Instance types**, **memory sizing**, **vCPU ratios**, **scaling tuning**, **scheduled scaling**, or **capacity provider config** -> see [references\u002Fconfiguration-guide.md](references\u002Fconfiguration-guide.md)\n- **Thread safety**, **concurrency model**, **code review checklist**, **Powertools compatibility**, or **multi-concurrency readiness** -> see [references\u002Fthread-safety.md](references\u002Fthread-safety.md)\n- **Before\u002Fafter code examples**, **runtime-specific migration** (Node.js, Python, Java, .NET), or **connection pooling** -> see [references\u002Fmigration-patterns.md](references\u002Fmigration-patterns.md)\n- **IAM roles**, **VPC setup**, **CLI commands**, **SAM template**, **CDK example**, or **scheduled scaling setup (EventBridge Scheduler)** -> see [references\u002Finfrastructure-setup.md](references\u002Finfrastructure-setup.md) and [scripts\u002Fsetup-lmi.sh](scripts\u002Fsetup-lmi.sh)\n- **Errors**, **throttling**, **debugging**, **stuck deployments**, **tuning configuration**, or **adjusting after deployment** -> see [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md)\n\n## Quick Decision: Is LMI Right for This Workload?\n\n| Signal         | LMI is a strong fit                                                                     | Standard Lambda is better                              |\n| -------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------ |\n| Traffic        | Steady, predictable, 50M+ req\u002Fmo                                                        | Bursty, unpredictable, long idle                       |\n| Cost           | Duration-heavy spend at scale                                                           | Low or sporadic invocations                            |\n| Cold starts    | Unacceptable (LMI eliminates for provisioned capacity; scale-out may have brief delays) | Tolerable or mitigated by SnapStart                    |\n| Compute        | Latest CPUs, specific families, high network bandwidth                                  | Standard Lambda memory\u002FCPU sufficient                  |\n| Isolation      | Dedicated EC2 instances in your account, full VPC control                               | Shared Firecracker micro-VMs acceptable                |\n| Scale-to-zero  | Not needed (execution environments always running)                                      | Required (pay nothing when idle)                       |\n| Code readiness | Thread-safe (Node.js\u002FJava\u002F.NET) or any Python code                                      | Non-thread-safe Node.js\u002FJava\u002F.NET, expensive to change |\n\n## Instructions\n\n### Step 1: Assess the Workload\n\nGather these signals before recommending:\n\n1. **Traffic pattern**: Steady vs bursty? Requests per second?\n2. **Current costs**: Monthly Lambda spend? Existing Savings Plans?\n3. **Runtime**: Node.js, Java, .NET, or Python?\n4. **Memory\u002FCPU**: How much memory? CPU-bound or I\u002FO-bound?\n5. **Execution duration**: Average and P99?\n6. **Concurrency readiness**: Thread safety (Node.js\u002FJava\u002F.NET)? Shared `\u002Ftmp` paths? Per-invocation DB connections?\n7. **VPC**: Already in a VPC? Private resource access needed?\n\n#### Deriving LMI Configuration from Metrics\n\nIf Lambda Insights is enabled on the function, use these metrics to calculate your starting configuration. If Lambda Insights is not enabled, suggest adding it to gather accurate workload data — but only proceed with the user's explicit confirmation, as adding the Insights layer may affect function performance or cold start times.\n\nTo check if Lambda Insights is enabled, look for a LambdaInsightsExtension layer on the function. To add it, find the latest layer ARN for your region from the [Lambda Insights documentation](https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FLambda-Insights-extension-versions.html) and attach the `CloudWatchLambdaInsightsExecutionRolePolicy` managed policy to the function's execution role.\n\n**Target max concurrency** (from `cpu_total_time` and `Duration`):\n\n```\nPerExecutionEnvironmentMaxConcurrency = floor((0.5 × Duration) \u002F cpu_total_time)\n```\n\nThis targets 50% CPU utilization at full concurrency, leaving headroom for scaling.\n\n**Memory allocation** (from `memory_utilization` and current memory):\n\n```\nMemorySize = min(32768, max(2048, MaxConcurrency × (memory_utilization \u002F 100) × current_allocated_memory))\n```\n\nThis overestimates (assumes no shared base memory) but provides a safe starting point. The outer `min` caps the result at the 32 GB (32768 MB) LMI maximum.\n\n**Minimum execution environments** (from baseline `ConcurrentExecutions`):\n\n```\nMinExecutionEnvironments = max(3, ceil(baseline_concurrent_executions × 2 \u002F MaxConcurrency))\n```\n\nTargets 50% concurrency utilization to leave headroom for traffic bursts.\n\n**Without Lambda Insights:** Start with the runtime's default max concurrency, 2 GB memory, and MinExecutionEnvironments = 3. Adjust during testing.\n\n### Step 2: Build the Cost Comparison\n\nREQUIRED: Present a cost comparison before recommending LMI. Compare at minimum:\n\n| Scenario         | When it wins                |\n| ---------------- | --------------------------- |\n| Lambda on-demand | Low volume, bursty traffic  |\n| LMI on-demand    | High volume, steady traffic |\n\nRule of thumb: LMI becomes cost-competitive when your Lambda spend exceeds ~$1,000\u002Fmonth with steady traffic.\n\nFor discount analysis (Savings Plans, Reserved Instances), refer users to the [AWS Pricing Calculator](https:\u002F\u002Fcalculator.aws\u002F) and [references\u002Fcost-comparison.md](references\u002Fcost-comparison.md) for formulas and worked examples. Discount recommendations require workload-specific forecasting beyond this skill's scope.\n\n### Step 3: Configure the Deployment\n\n**Instance families** (~450 types): C-series (compute, .xlarge+), M-series (general, .large+), R-series (memory, .large+). ARM (Graviton) for best price-performance.\n\n**Memory-to-vCPU ratios**: 2:1 (default, CPU-bound work), 4:1 (general\u002Fmixed workloads), 8:1 (memory-heavy or Python apps). Min 2 GB, max 32 GB.\n\n**Multi-concurrency defaults\u002FvCPU**: Node.js 64, Java 32, .NET 32, Python 16.\n\n**Scaling**: MinExecutionEnvironments (default 3), MaxVCpuCount (default 400), TargetResourceUtilization.\n\n**Scheduled scaling**: For predictable traffic (business hours, marketing events), use EventBridge Scheduler to adjust Min\u002FMax execution environments on a one-time or recurring schedule — scale up before peak, scale down or to zero when idle.\n\nSee [references\u002Fconfiguration-guide.md](references\u002Fconfiguration-guide.md) for decision trees and detailed tuning.\n\n### Step 4: Migrate the Code\n\nReview code for concurrency safety. LMI runs multiple invocations concurrently per execution environment, but the model differs by runtime:\n\n- **Python**: Process-based isolation — globals are NOT shared. No thread-safety changes needed. Focus on `\u002Ftmp` conflicts and memory sizing (per-process × concurrency).\n- **Node.js**: Worker threads — globals shared within a worker. Requires async safety. Callback handlers not supported on Node.js 22.\n- **Java\u002F.NET**: OS threads\u002FTasks — handler shared across threads. Requires full thread safety.\n\n**Common issues (all runtimes)**: shared `\u002Ftmp` paths, per-invocation DB connections.\n**Thread-safety issues (Node.js\u002FJava\u002F.NET only)**: mutable globals, non-thread-safe libs.\n\nSee [references\u002Fthread-safety.md](references\u002Fthread-safety.md) for the review checklist and [references\u002Fmigration-patterns.md](references\u002Fmigration-patterns.md) for runtime-specific before\u002Fafter code.\n\n### Step 5: Set Up Infrastructure\n\n1. Create two IAM roles: execution role (for the function) and operator role (for capacity provider EC2 management)\n2. Configure VPC with subnets across multiple AZs (recommended 3+ for resiliency)\n3. Create capacity provider with VPC config and scaling limits\n4. Create or update function with capacity provider attachment\n5. Publish a version (triggers instance provisioning)\n\nSee [references\u002Finfrastructure-setup.md](references\u002Finfrastructure-setup.md) for CLI commands and SAM templates.\n\n### Step 6: Validate and Cut Over\n\n1. Deploy to a non-production environment first\n2. Monitor CloudWatch: CPU utilization, memory, concurrency, throttle rate. If you observe low CPU utilization or ongoing throttles, see [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for metric-specific adjustment guidance.\n3. Shift traffic to the LMI function (note: weighted alias shifting between LMI and non-LMI functions is not currently supported)\n4. Compare costs after 1-2 weeks of production data\n5. Decommission standard Lambda once stable\n\n## Best Practices\n\n### Configuration\n\n- Do: Start with 2:1 ratio and runtime default concurrency\n- Do: Use ARM (Graviton) unless x86 dependencies exist\n- Do: Let Lambda choose instance types unless specific hardware needed\n- Do: Set MaxVCpuCount to control cost ceiling\n- Don't: Set MinExecutionEnvironments below 3 in production (reduces multi-AZ coverage). Non-prod environments can use 1 as the minimum.\n- Don't: Over-restrict instance types (lowers availability)\n\n### Migration\n\n- Do: Start with I\u002FO-heavy functions (benefit most from multi-concurrency; CPU-bound functions compete for same CPU)\n- Do: Review code for concurrency safety before attaching to capacity provider (thread safety for Node.js\u002FJava\u002F.NET; `\u002Ftmp` and memory for Python)\n- Do: Plan traffic shifting strategy based on your invocation source (weighted alias shifting between LMI and non-LMI functions is not currently supported)\n- Do: Include request IDs in all log statements\n- Do: Initialize DB pools and SDK clients outside the handler\n- Do: Estimate total `\u002Ftmp` usage under max concurrency\n- Don't: Write to hardcoded `\u002Ftmp` paths without request-unique naming\n- Don't: Skip cost comparison — LMI is not always cheaper\n\n### Operations\n\n- Do: Set CloudWatch alarms on throttle rate > 1% and CPU > 80%\n- Do: Use scheduled scaling (EventBridge Scheduler) for predictable traffic — raise Min\u002FMax before peak periods and lower them (or scale to zero) when idle\n- Don't: Manually terminate LMI EC2 instances (delete the capacity provider instead)\n- Don't: Forget to publish a version — unpublished functions cannot run on LMI\n- Don't: Rely on a deactivated (Min=Max=0) function to self-recover — schedule an explicit scale-up to reactivate it\n\n## Limits Quick Reference\n\n| Resource          | Limit                                     |\n| ----------------- | ----------------------------------------- |\n| Memory            | 2 GB min, 32 GB max                       |\n| Concurrency\u002FvCPU  | 64 (Node.js), 32 (Java\u002F.NET), 16 (Python) |\n| Instance lifespan | ~12 hours (auto-replaced by Lambda)       |\n| EE lifespan       | ~4 hours (auto-replaced by Lambda)        |\n| Runtimes          | Node.js, Java, .NET, Python               |\n| Instance families | C (.xlarge+), M (.large+), R (.large+)    |\n| Scaling           | Doubles within 5 min without throttles    |\n\n## Troubleshooting Quick Reference\n\n| Issue                      | Cause                             | Fix                                                                  |\n| -------------------------- | --------------------------------- | -------------------------------------------------------------------- |\n| 429 throttles              | Traffic exceeds scaling speed     | Increase MinExecutionEnvironments or lower TargetResourceUtilization |\n| Function stuck PENDING     | Provisioning instances            | Wait; check VPC\u002FIAM config                                           |\n| Architecture mismatch      | Function ≠ capacity provider arch | Align both to same architecture                                      |\n| Cannot terminate instances | Managed by capacity provider      | Delete capacity provider instead                                     |\n| Race conditions            | Code not thread-safe              | See [references\u002Fthread-safety.md](references\u002Fthread-safety.md)       |\n\nSee [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for detailed resolution steps.\n\n## Configuration\n\n### AWS CLI Setup\n\nREQUIRED: AWS credentials configured on the host machine.\n\n**Verify access**: Run `aws sts get-caller-identity`\n\n### Regional Availability\n\nAvailable in all commercial AWS Regions except Israel (Tel Aviv), Middle East (Bahrain), Middle East (UAE), and Asia Pacific (Auckland).\n\nCheck the [Lambda Managed Instances documentation](https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Flambda-managed-instances.html) for the latest regional availability.\n\n## Language Selection\n\nDefault: TypeScript\n\nOverride: \"use Python\" → Python, \"use JavaScript\" → JavaScript. When not specified, ALWAYS use TypeScript.\n\n## IaC Framework Selection\n\nDefault: CDK\n\nOverride: \"use SAM\" → SAM YAML, \"use CloudFormation\" → CloudFormation YAML. When not specified, ALWAYS use CDK.\n\n## Error Scenarios\n\n### Serverless MCP Server Unavailable\n\n- Inform user: \"AWS Serverless MCP not responding\"\n- Ask: \"Proceed without MCP support?\"\n- DO NOT continue without user confirmation\n\n### Unsupported Runtime\n\n- State: \"Lambda Managed Instances does not yet support [runtime]\"\n- List supported runtimes\n- Suggest standard Lambda as alternative\n\n### Unsupported Region\n\n- State: \"Lambda Managed Instances is not available in [region]\"\n- Name the excluded regions: Israel (Tel Aviv), Middle East (Bahrain), Middle East (UAE), Asia Pacific (Auckland)\n- Suggest the nearest supported region\n\n## Resources\n\n- [Lambda Managed Instances Docs](https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Flambda-managed-instances.html)\n- [Scaling LMI & Scheduled Scaling Docs](https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Flambda-managed-instances-scaling.html)\n- [Introducing LMI (AWS Blog)](https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Faws\u002Fintroducing-aws-lambda-managed-instances-serverless-simplicity-with-ec2-flexibility\u002F)\n- [Build High-Performance Apps with LMI](https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuild-high-performance-apps-with-aws-lambda-managed-instances\u002F)\n- [Migrating Functions to LMI (AWS Blog)](https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fmigrating-your-functions-to-aws-lambda-managed-instances\u002F)\n- [LMI Pricing Calculator](https:\u002F\u002Faws-samples.github.io\u002Fsample-aws-lambda-managed-instances\u002F)\n- [LMI Samples Repository](https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fsample-aws-lambda-managed-instances)\n- [AWS Lambda Pricing](https:\u002F\u002Faws.amazon.com\u002Flambda\u002Fpricing\u002F)\n",{"data":43,"body":47},{"name":4,"description":6,"argument-hint":44,"metadata":45},"[describe your workload or what you need help with]",{"tags":46},"lambda, lmi, managed-instances, ec2, capacity-provider, multi-concurrency, cost-optimization, scheduled-scaling",{"type":48,"children":49},"root",[50,59,65,87,94,345,351,510,516,523,528,611,618,623,646,671,683,688,705,714,727,744,753,758,768,774,779,827,832,851,857,867,877,887,897,907,918,924,929,969,993,1009,1015,1043,1053,1059,1093,1099,1105,1138,1144,1208,1214,1242,1248,1359,1365,1485,1495,1500,1506,1511,1527,1533,1538,1552,1558,1563,1568,1574,1579,1584,1590,1596,1614,1620,1646,1652,1676,1682],{"type":51,"tag":52,"props":53,"children":55},"element","h1",{"id":54},"aws-lambda-managed-instances-lmi",[56],{"type":57,"value":58},"text","AWS Lambda Managed Instances (LMI)",{"type":51,"tag":60,"props":61,"children":62},"p",{},[63],{"type":57,"value":64},"Run Lambda functions on current-generation EC2 instances in your account while AWS manages provisioning, patching, scaling, routing, and load balancing. Combines Lambda's developer experience with EC2's pricing and hardware options.",{"type":51,"tag":60,"props":66,"children":67},{},[68,70,77,79,85],{"type":57,"value":69},"For standard Lambda development, see ",{"type":51,"tag":71,"props":72,"children":74},"a",{"href":73},"..\u002Faws-lambda\u002F",[75],{"type":57,"value":76},"aws-lambda skill",{"type":57,"value":78},". For SAM\u002FCDK deployment, see ",{"type":51,"tag":71,"props":80,"children":82},{"href":81},"..\u002Faws-serverless-deployment\u002F",[83],{"type":57,"value":84},"aws-serverless-deployment skill",{"type":57,"value":86},".",{"type":51,"tag":88,"props":89,"children":91},"h2",{"id":90},"when-to-load-reference-files",[92],{"type":57,"value":93},"When to Load Reference Files",{"type":51,"tag":95,"props":96,"children":97},"ul",{},[98,141,185,223,250,301],{"type":51,"tag":99,"props":100,"children":101},"li",{},[102,108,110,115,116,121,122,127,129,134,136],{"type":51,"tag":103,"props":104,"children":105},"strong",{},[106],{"type":57,"value":107},"Cost comparison",{"type":57,"value":109},", ",{"type":51,"tag":103,"props":111,"children":112},{},[113],{"type":57,"value":114},"pricing analysis",{"type":57,"value":109},{"type":51,"tag":103,"props":117,"children":118},{},[119],{"type":57,"value":120},"Lambda vs LMI cost",{"type":57,"value":109},{"type":51,"tag":103,"props":123,"children":124},{},[125],{"type":57,"value":126},"Savings Plans",{"type":57,"value":128},", or ",{"type":51,"tag":103,"props":130,"children":131},{},[132],{"type":57,"value":133},"Reserved Instances",{"type":57,"value":135}," -> see ",{"type":51,"tag":71,"props":137,"children":139},{"href":138},"references\u002Fcost-comparison.md",[140],{"type":57,"value":138},{"type":51,"tag":99,"props":142,"children":143},{},[144,149,150,155,156,161,162,167,168,173,174,179,180],{"type":51,"tag":103,"props":145,"children":146},{},[147],{"type":57,"value":148},"Instance types",{"type":57,"value":109},{"type":51,"tag":103,"props":151,"children":152},{},[153],{"type":57,"value":154},"memory sizing",{"type":57,"value":109},{"type":51,"tag":103,"props":157,"children":158},{},[159],{"type":57,"value":160},"vCPU ratios",{"type":57,"value":109},{"type":51,"tag":103,"props":163,"children":164},{},[165],{"type":57,"value":166},"scaling tuning",{"type":57,"value":109},{"type":51,"tag":103,"props":169,"children":170},{},[171],{"type":57,"value":172},"scheduled scaling",{"type":57,"value":128},{"type":51,"tag":103,"props":175,"children":176},{},[177],{"type":57,"value":178},"capacity provider config",{"type":57,"value":135},{"type":51,"tag":71,"props":181,"children":183},{"href":182},"references\u002Fconfiguration-guide.md",[184],{"type":57,"value":182},{"type":51,"tag":99,"props":186,"children":187},{},[188,193,194,199,200,205,206,211,212,217,218],{"type":51,"tag":103,"props":189,"children":190},{},[191],{"type":57,"value":192},"Thread safety",{"type":57,"value":109},{"type":51,"tag":103,"props":195,"children":196},{},[197],{"type":57,"value":198},"concurrency model",{"type":57,"value":109},{"type":51,"tag":103,"props":201,"children":202},{},[203],{"type":57,"value":204},"code review checklist",{"type":57,"value":109},{"type":51,"tag":103,"props":207,"children":208},{},[209],{"type":57,"value":210},"Powertools compatibility",{"type":57,"value":128},{"type":51,"tag":103,"props":213,"children":214},{},[215],{"type":57,"value":216},"multi-concurrency readiness",{"type":57,"value":135},{"type":51,"tag":71,"props":219,"children":221},{"href":220},"references\u002Fthread-safety.md",[222],{"type":57,"value":220},{"type":51,"tag":99,"props":224,"children":225},{},[226,231,232,237,239,244,245],{"type":51,"tag":103,"props":227,"children":228},{},[229],{"type":57,"value":230},"Before\u002Fafter code examples",{"type":57,"value":109},{"type":51,"tag":103,"props":233,"children":234},{},[235],{"type":57,"value":236},"runtime-specific migration",{"type":57,"value":238}," (Node.js, Python, Java, .NET), or ",{"type":51,"tag":103,"props":240,"children":241},{},[242],{"type":57,"value":243},"connection pooling",{"type":57,"value":135},{"type":51,"tag":71,"props":246,"children":248},{"href":247},"references\u002Fmigration-patterns.md",[249],{"type":57,"value":247},{"type":51,"tag":99,"props":251,"children":252},{},[253,258,259,264,265,270,271,276,277,282,283,288,289,294,296],{"type":51,"tag":103,"props":254,"children":255},{},[256],{"type":57,"value":257},"IAM roles",{"type":57,"value":109},{"type":51,"tag":103,"props":260,"children":261},{},[262],{"type":57,"value":263},"VPC setup",{"type":57,"value":109},{"type":51,"tag":103,"props":266,"children":267},{},[268],{"type":57,"value":269},"CLI commands",{"type":57,"value":109},{"type":51,"tag":103,"props":272,"children":273},{},[274],{"type":57,"value":275},"SAM template",{"type":57,"value":109},{"type":51,"tag":103,"props":278,"children":279},{},[280],{"type":57,"value":281},"CDK example",{"type":57,"value":128},{"type":51,"tag":103,"props":284,"children":285},{},[286],{"type":57,"value":287},"scheduled scaling setup (EventBridge Scheduler)",{"type":57,"value":135},{"type":51,"tag":71,"props":290,"children":292},{"href":291},"references\u002Finfrastructure-setup.md",[293],{"type":57,"value":291},{"type":57,"value":295}," and ",{"type":51,"tag":71,"props":297,"children":299},{"href":298},"scripts\u002Fsetup-lmi.sh",[300],{"type":57,"value":298},{"type":51,"tag":99,"props":302,"children":303},{},[304,309,310,315,316,321,322,327,328,333,334,339,340],{"type":51,"tag":103,"props":305,"children":306},{},[307],{"type":57,"value":308},"Errors",{"type":57,"value":109},{"type":51,"tag":103,"props":311,"children":312},{},[313],{"type":57,"value":314},"throttling",{"type":57,"value":109},{"type":51,"tag":103,"props":317,"children":318},{},[319],{"type":57,"value":320},"debugging",{"type":57,"value":109},{"type":51,"tag":103,"props":323,"children":324},{},[325],{"type":57,"value":326},"stuck deployments",{"type":57,"value":109},{"type":51,"tag":103,"props":329,"children":330},{},[331],{"type":57,"value":332},"tuning configuration",{"type":57,"value":128},{"type":51,"tag":103,"props":335,"children":336},{},[337],{"type":57,"value":338},"adjusting after deployment",{"type":57,"value":135},{"type":51,"tag":71,"props":341,"children":343},{"href":342},"references\u002Ftroubleshooting.md",[344],{"type":57,"value":342},{"type":51,"tag":88,"props":346,"children":348},{"id":347},"quick-decision-is-lmi-right-for-this-workload",[349],{"type":57,"value":350},"Quick Decision: Is LMI Right for This Workload?",{"type":51,"tag":352,"props":353,"children":354},"table",{},[355,379],{"type":51,"tag":356,"props":357,"children":358},"thead",{},[359],{"type":51,"tag":360,"props":361,"children":362},"tr",{},[363,369,374],{"type":51,"tag":364,"props":365,"children":366},"th",{},[367],{"type":57,"value":368},"Signal",{"type":51,"tag":364,"props":370,"children":371},{},[372],{"type":57,"value":373},"LMI is a strong fit",{"type":51,"tag":364,"props":375,"children":376},{},[377],{"type":57,"value":378},"Standard Lambda is better",{"type":51,"tag":380,"props":381,"children":382},"tbody",{},[383,402,420,438,456,474,492],{"type":51,"tag":360,"props":384,"children":385},{},[386,392,397],{"type":51,"tag":387,"props":388,"children":389},"td",{},[390],{"type":57,"value":391},"Traffic",{"type":51,"tag":387,"props":393,"children":394},{},[395],{"type":57,"value":396},"Steady, predictable, 50M+ req\u002Fmo",{"type":51,"tag":387,"props":398,"children":399},{},[400],{"type":57,"value":401},"Bursty, unpredictable, long idle",{"type":51,"tag":360,"props":403,"children":404},{},[405,410,415],{"type":51,"tag":387,"props":406,"children":407},{},[408],{"type":57,"value":409},"Cost",{"type":51,"tag":387,"props":411,"children":412},{},[413],{"type":57,"value":414},"Duration-heavy spend at scale",{"type":51,"tag":387,"props":416,"children":417},{},[418],{"type":57,"value":419},"Low or sporadic invocations",{"type":51,"tag":360,"props":421,"children":422},{},[423,428,433],{"type":51,"tag":387,"props":424,"children":425},{},[426],{"type":57,"value":427},"Cold starts",{"type":51,"tag":387,"props":429,"children":430},{},[431],{"type":57,"value":432},"Unacceptable (LMI eliminates for provisioned capacity; scale-out may have brief delays)",{"type":51,"tag":387,"props":434,"children":435},{},[436],{"type":57,"value":437},"Tolerable or mitigated by SnapStart",{"type":51,"tag":360,"props":439,"children":440},{},[441,446,451],{"type":51,"tag":387,"props":442,"children":443},{},[444],{"type":57,"value":445},"Compute",{"type":51,"tag":387,"props":447,"children":448},{},[449],{"type":57,"value":450},"Latest CPUs, specific families, high network bandwidth",{"type":51,"tag":387,"props":452,"children":453},{},[454],{"type":57,"value":455},"Standard Lambda memory\u002FCPU sufficient",{"type":51,"tag":360,"props":457,"children":458},{},[459,464,469],{"type":51,"tag":387,"props":460,"children":461},{},[462],{"type":57,"value":463},"Isolation",{"type":51,"tag":387,"props":465,"children":466},{},[467],{"type":57,"value":468},"Dedicated EC2 instances in your account, full VPC control",{"type":51,"tag":387,"props":470,"children":471},{},[472],{"type":57,"value":473},"Shared Firecracker micro-VMs acceptable",{"type":51,"tag":360,"props":475,"children":476},{},[477,482,487],{"type":51,"tag":387,"props":478,"children":479},{},[480],{"type":57,"value":481},"Scale-to-zero",{"type":51,"tag":387,"props":483,"children":484},{},[485],{"type":57,"value":486},"Not needed (execution environments always running)",{"type":51,"tag":387,"props":488,"children":489},{},[490],{"type":57,"value":491},"Required (pay nothing when idle)",{"type":51,"tag":360,"props":493,"children":494},{},[495,500,505],{"type":51,"tag":387,"props":496,"children":497},{},[498],{"type":57,"value":499},"Code readiness",{"type":51,"tag":387,"props":501,"children":502},{},[503],{"type":57,"value":504},"Thread-safe (Node.js\u002FJava\u002F.NET) or any Python code",{"type":51,"tag":387,"props":506,"children":507},{},[508],{"type":57,"value":509},"Non-thread-safe Node.js\u002FJava\u002F.NET, expensive to change",{"type":51,"tag":88,"props":511,"children":513},{"id":512},"instructions",[514],{"type":57,"value":515},"Instructions",{"type":51,"tag":517,"props":518,"children":520},"h3",{"id":519},"step-1-assess-the-workload",[521],{"type":57,"value":522},"Step 1: Assess the Workload",{"type":51,"tag":60,"props":524,"children":525},{},[526],{"type":57,"value":527},"Gather these signals before recommending:",{"type":51,"tag":529,"props":530,"children":531},"ol",{},[532,542,552,562,572,582,601],{"type":51,"tag":99,"props":533,"children":534},{},[535,540],{"type":51,"tag":103,"props":536,"children":537},{},[538],{"type":57,"value":539},"Traffic pattern",{"type":57,"value":541},": Steady vs bursty? Requests per second?",{"type":51,"tag":99,"props":543,"children":544},{},[545,550],{"type":51,"tag":103,"props":546,"children":547},{},[548],{"type":57,"value":549},"Current costs",{"type":57,"value":551},": Monthly Lambda spend? Existing Savings Plans?",{"type":51,"tag":99,"props":553,"children":554},{},[555,560],{"type":51,"tag":103,"props":556,"children":557},{},[558],{"type":57,"value":559},"Runtime",{"type":57,"value":561},": Node.js, Java, .NET, or Python?",{"type":51,"tag":99,"props":563,"children":564},{},[565,570],{"type":51,"tag":103,"props":566,"children":567},{},[568],{"type":57,"value":569},"Memory\u002FCPU",{"type":57,"value":571},": How much memory? CPU-bound or I\u002FO-bound?",{"type":51,"tag":99,"props":573,"children":574},{},[575,580],{"type":51,"tag":103,"props":576,"children":577},{},[578],{"type":57,"value":579},"Execution duration",{"type":57,"value":581},": Average and P99?",{"type":51,"tag":99,"props":583,"children":584},{},[585,590,592,599],{"type":51,"tag":103,"props":586,"children":587},{},[588],{"type":57,"value":589},"Concurrency readiness",{"type":57,"value":591},": Thread safety (Node.js\u002FJava\u002F.NET)? Shared ",{"type":51,"tag":593,"props":594,"children":596},"code",{"className":595},[],[597],{"type":57,"value":598},"\u002Ftmp",{"type":57,"value":600}," paths? Per-invocation DB connections?",{"type":51,"tag":99,"props":602,"children":603},{},[604,609],{"type":51,"tag":103,"props":605,"children":606},{},[607],{"type":57,"value":608},"VPC",{"type":57,"value":610},": Already in a VPC? Private resource access needed?",{"type":51,"tag":612,"props":613,"children":615},"h4",{"id":614},"deriving-lmi-configuration-from-metrics",[616],{"type":57,"value":617},"Deriving LMI Configuration from Metrics",{"type":51,"tag":60,"props":619,"children":620},{},[621],{"type":57,"value":622},"If Lambda Insights is enabled on the function, use these metrics to calculate your starting configuration. If Lambda Insights is not enabled, suggest adding it to gather accurate workload data — but only proceed with the user's explicit confirmation, as adding the Insights layer may affect function performance or cold start times.",{"type":51,"tag":60,"props":624,"children":625},{},[626,628,636,638,644],{"type":57,"value":627},"To check if Lambda Insights is enabled, look for a LambdaInsightsExtension layer on the function. To add it, find the latest layer ARN for your region from the ",{"type":51,"tag":71,"props":629,"children":633},{"href":630,"rel":631},"https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FLambda-Insights-extension-versions.html",[632],"nofollow",[634],{"type":57,"value":635},"Lambda Insights documentation",{"type":57,"value":637}," and attach the ",{"type":51,"tag":593,"props":639,"children":641},{"className":640},[],[642],{"type":57,"value":643},"CloudWatchLambdaInsightsExecutionRolePolicy",{"type":57,"value":645}," managed policy to the function's execution role.",{"type":51,"tag":60,"props":647,"children":648},{},[649,654,656,662,663,669],{"type":51,"tag":103,"props":650,"children":651},{},[652],{"type":57,"value":653},"Target max concurrency",{"type":57,"value":655}," (from ",{"type":51,"tag":593,"props":657,"children":659},{"className":658},[],[660],{"type":57,"value":661},"cpu_total_time",{"type":57,"value":295},{"type":51,"tag":593,"props":664,"children":666},{"className":665},[],[667],{"type":57,"value":668},"Duration",{"type":57,"value":670},"):",{"type":51,"tag":672,"props":673,"children":677},"pre",{"className":674,"code":676,"language":57},[675],"language-text","PerExecutionEnvironmentMaxConcurrency = floor((0.5 × Duration) \u002F cpu_total_time)\n",[678],{"type":51,"tag":593,"props":679,"children":681},{"__ignoreMap":680},"",[682],{"type":57,"value":676},{"type":51,"tag":60,"props":684,"children":685},{},[686],{"type":57,"value":687},"This targets 50% CPU utilization at full concurrency, leaving headroom for scaling.",{"type":51,"tag":60,"props":689,"children":690},{},[691,696,697,703],{"type":51,"tag":103,"props":692,"children":693},{},[694],{"type":57,"value":695},"Memory allocation",{"type":57,"value":655},{"type":51,"tag":593,"props":698,"children":700},{"className":699},[],[701],{"type":57,"value":702},"memory_utilization",{"type":57,"value":704}," and current memory):",{"type":51,"tag":672,"props":706,"children":709},{"className":707,"code":708,"language":57},[675],"MemorySize = min(32768, max(2048, MaxConcurrency × (memory_utilization \u002F 100) × current_allocated_memory))\n",[710],{"type":51,"tag":593,"props":711,"children":712},{"__ignoreMap":680},[713],{"type":57,"value":708},{"type":51,"tag":60,"props":715,"children":716},{},[717,719,725],{"type":57,"value":718},"This overestimates (assumes no shared base memory) but provides a safe starting point. The outer ",{"type":51,"tag":593,"props":720,"children":722},{"className":721},[],[723],{"type":57,"value":724},"min",{"type":57,"value":726}," caps the result at the 32 GB (32768 MB) LMI maximum.",{"type":51,"tag":60,"props":728,"children":729},{},[730,735,737,743],{"type":51,"tag":103,"props":731,"children":732},{},[733],{"type":57,"value":734},"Minimum execution environments",{"type":57,"value":736}," (from baseline ",{"type":51,"tag":593,"props":738,"children":740},{"className":739},[],[741],{"type":57,"value":742},"ConcurrentExecutions",{"type":57,"value":670},{"type":51,"tag":672,"props":745,"children":748},{"className":746,"code":747,"language":57},[675],"MinExecutionEnvironments = max(3, ceil(baseline_concurrent_executions × 2 \u002F MaxConcurrency))\n",[749],{"type":51,"tag":593,"props":750,"children":751},{"__ignoreMap":680},[752],{"type":57,"value":747},{"type":51,"tag":60,"props":754,"children":755},{},[756],{"type":57,"value":757},"Targets 50% concurrency utilization to leave headroom for traffic bursts.",{"type":51,"tag":60,"props":759,"children":760},{},[761,766],{"type":51,"tag":103,"props":762,"children":763},{},[764],{"type":57,"value":765},"Without Lambda Insights:",{"type":57,"value":767}," Start with the runtime's default max concurrency, 2 GB memory, and MinExecutionEnvironments = 3. Adjust during testing.",{"type":51,"tag":517,"props":769,"children":771},{"id":770},"step-2-build-the-cost-comparison",[772],{"type":57,"value":773},"Step 2: Build the Cost Comparison",{"type":51,"tag":60,"props":775,"children":776},{},[777],{"type":57,"value":778},"REQUIRED: Present a cost comparison before recommending LMI. Compare at minimum:",{"type":51,"tag":352,"props":780,"children":781},{},[782,798],{"type":51,"tag":356,"props":783,"children":784},{},[785],{"type":51,"tag":360,"props":786,"children":787},{},[788,793],{"type":51,"tag":364,"props":789,"children":790},{},[791],{"type":57,"value":792},"Scenario",{"type":51,"tag":364,"props":794,"children":795},{},[796],{"type":57,"value":797},"When it wins",{"type":51,"tag":380,"props":799,"children":800},{},[801,814],{"type":51,"tag":360,"props":802,"children":803},{},[804,809],{"type":51,"tag":387,"props":805,"children":806},{},[807],{"type":57,"value":808},"Lambda on-demand",{"type":51,"tag":387,"props":810,"children":811},{},[812],{"type":57,"value":813},"Low volume, bursty traffic",{"type":51,"tag":360,"props":815,"children":816},{},[817,822],{"type":51,"tag":387,"props":818,"children":819},{},[820],{"type":57,"value":821},"LMI on-demand",{"type":51,"tag":387,"props":823,"children":824},{},[825],{"type":57,"value":826},"High volume, steady traffic",{"type":51,"tag":60,"props":828,"children":829},{},[830],{"type":57,"value":831},"Rule of thumb: LMI becomes cost-competitive when your Lambda spend exceeds ~$1,000\u002Fmonth with steady traffic.",{"type":51,"tag":60,"props":833,"children":834},{},[835,837,844,845,849],{"type":57,"value":836},"For discount analysis (Savings Plans, Reserved Instances), refer users to the ",{"type":51,"tag":71,"props":838,"children":841},{"href":839,"rel":840},"https:\u002F\u002Fcalculator.aws\u002F",[632],[842],{"type":57,"value":843},"AWS Pricing Calculator",{"type":57,"value":295},{"type":51,"tag":71,"props":846,"children":847},{"href":138},[848],{"type":57,"value":138},{"type":57,"value":850}," for formulas and worked examples. Discount recommendations require workload-specific forecasting beyond this skill's scope.",{"type":51,"tag":517,"props":852,"children":854},{"id":853},"step-3-configure-the-deployment",[855],{"type":57,"value":856},"Step 3: Configure the Deployment",{"type":51,"tag":60,"props":858,"children":859},{},[860,865],{"type":51,"tag":103,"props":861,"children":862},{},[863],{"type":57,"value":864},"Instance families",{"type":57,"value":866}," (~450 types): C-series (compute, .xlarge+), M-series (general, .large+), R-series (memory, .large+). ARM (Graviton) for best price-performance.",{"type":51,"tag":60,"props":868,"children":869},{},[870,875],{"type":51,"tag":103,"props":871,"children":872},{},[873],{"type":57,"value":874},"Memory-to-vCPU ratios",{"type":57,"value":876},": 2:1 (default, CPU-bound work), 4:1 (general\u002Fmixed workloads), 8:1 (memory-heavy or Python apps). Min 2 GB, max 32 GB.",{"type":51,"tag":60,"props":878,"children":879},{},[880,885],{"type":51,"tag":103,"props":881,"children":882},{},[883],{"type":57,"value":884},"Multi-concurrency defaults\u002FvCPU",{"type":57,"value":886},": Node.js 64, Java 32, .NET 32, Python 16.",{"type":51,"tag":60,"props":888,"children":889},{},[890,895],{"type":51,"tag":103,"props":891,"children":892},{},[893],{"type":57,"value":894},"Scaling",{"type":57,"value":896},": MinExecutionEnvironments (default 3), MaxVCpuCount (default 400), TargetResourceUtilization.",{"type":51,"tag":60,"props":898,"children":899},{},[900,905],{"type":51,"tag":103,"props":901,"children":902},{},[903],{"type":57,"value":904},"Scheduled scaling",{"type":57,"value":906},": For predictable traffic (business hours, marketing events), use EventBridge Scheduler to adjust Min\u002FMax execution environments on a one-time or recurring schedule — scale up before peak, scale down or to zero when idle.",{"type":51,"tag":60,"props":908,"children":909},{},[910,912,916],{"type":57,"value":911},"See ",{"type":51,"tag":71,"props":913,"children":914},{"href":182},[915],{"type":57,"value":182},{"type":57,"value":917}," for decision trees and detailed tuning.",{"type":51,"tag":517,"props":919,"children":921},{"id":920},"step-4-migrate-the-code",[922],{"type":57,"value":923},"Step 4: Migrate the Code",{"type":51,"tag":60,"props":925,"children":926},{},[927],{"type":57,"value":928},"Review code for concurrency safety. LMI runs multiple invocations concurrently per execution environment, but the model differs by runtime:",{"type":51,"tag":95,"props":930,"children":931},{},[932,949,959],{"type":51,"tag":99,"props":933,"children":934},{},[935,940,942,947],{"type":51,"tag":103,"props":936,"children":937},{},[938],{"type":57,"value":939},"Python",{"type":57,"value":941},": Process-based isolation — globals are NOT shared. No thread-safety changes needed. Focus on ",{"type":51,"tag":593,"props":943,"children":945},{"className":944},[],[946],{"type":57,"value":598},{"type":57,"value":948}," conflicts and memory sizing (per-process × concurrency).",{"type":51,"tag":99,"props":950,"children":951},{},[952,957],{"type":51,"tag":103,"props":953,"children":954},{},[955],{"type":57,"value":956},"Node.js",{"type":57,"value":958},": Worker threads — globals shared within a worker. Requires async safety. Callback handlers not supported on Node.js 22.",{"type":51,"tag":99,"props":960,"children":961},{},[962,967],{"type":51,"tag":103,"props":963,"children":964},{},[965],{"type":57,"value":966},"Java\u002F.NET",{"type":57,"value":968},": OS threads\u002FTasks — handler shared across threads. Requires full thread safety.",{"type":51,"tag":60,"props":970,"children":971},{},[972,977,979,984,986,991],{"type":51,"tag":103,"props":973,"children":974},{},[975],{"type":57,"value":976},"Common issues (all runtimes)",{"type":57,"value":978},": shared ",{"type":51,"tag":593,"props":980,"children":982},{"className":981},[],[983],{"type":57,"value":598},{"type":57,"value":985}," paths, per-invocation DB connections.\n",{"type":51,"tag":103,"props":987,"children":988},{},[989],{"type":57,"value":990},"Thread-safety issues (Node.js\u002FJava\u002F.NET only)",{"type":57,"value":992},": mutable globals, non-thread-safe libs.",{"type":51,"tag":60,"props":994,"children":995},{},[996,997,1001,1003,1007],{"type":57,"value":911},{"type":51,"tag":71,"props":998,"children":999},{"href":220},[1000],{"type":57,"value":220},{"type":57,"value":1002}," for the review checklist and ",{"type":51,"tag":71,"props":1004,"children":1005},{"href":247},[1006],{"type":57,"value":247},{"type":57,"value":1008}," for runtime-specific before\u002Fafter code.",{"type":51,"tag":517,"props":1010,"children":1012},{"id":1011},"step-5-set-up-infrastructure",[1013],{"type":57,"value":1014},"Step 5: Set Up Infrastructure",{"type":51,"tag":529,"props":1016,"children":1017},{},[1018,1023,1028,1033,1038],{"type":51,"tag":99,"props":1019,"children":1020},{},[1021],{"type":57,"value":1022},"Create two IAM roles: execution role (for the function) and operator role (for capacity provider EC2 management)",{"type":51,"tag":99,"props":1024,"children":1025},{},[1026],{"type":57,"value":1027},"Configure VPC with subnets across multiple AZs (recommended 3+ for resiliency)",{"type":51,"tag":99,"props":1029,"children":1030},{},[1031],{"type":57,"value":1032},"Create capacity provider with VPC config and scaling limits",{"type":51,"tag":99,"props":1034,"children":1035},{},[1036],{"type":57,"value":1037},"Create or update function with capacity provider attachment",{"type":51,"tag":99,"props":1039,"children":1040},{},[1041],{"type":57,"value":1042},"Publish a version (triggers instance provisioning)",{"type":51,"tag":60,"props":1044,"children":1045},{},[1046,1047,1051],{"type":57,"value":911},{"type":51,"tag":71,"props":1048,"children":1049},{"href":291},[1050],{"type":57,"value":291},{"type":57,"value":1052}," for CLI commands and SAM templates.",{"type":51,"tag":517,"props":1054,"children":1056},{"id":1055},"step-6-validate-and-cut-over",[1057],{"type":57,"value":1058},"Step 6: Validate and Cut Over",{"type":51,"tag":529,"props":1060,"children":1061},{},[1062,1067,1078,1083,1088],{"type":51,"tag":99,"props":1063,"children":1064},{},[1065],{"type":57,"value":1066},"Deploy to a non-production environment first",{"type":51,"tag":99,"props":1068,"children":1069},{},[1070,1072,1076],{"type":57,"value":1071},"Monitor CloudWatch: CPU utilization, memory, concurrency, throttle rate. If you observe low CPU utilization or ongoing throttles, see ",{"type":51,"tag":71,"props":1073,"children":1074},{"href":342},[1075],{"type":57,"value":342},{"type":57,"value":1077}," for metric-specific adjustment guidance.",{"type":51,"tag":99,"props":1079,"children":1080},{},[1081],{"type":57,"value":1082},"Shift traffic to the LMI function (note: weighted alias shifting between LMI and non-LMI functions is not currently supported)",{"type":51,"tag":99,"props":1084,"children":1085},{},[1086],{"type":57,"value":1087},"Compare costs after 1-2 weeks of production data",{"type":51,"tag":99,"props":1089,"children":1090},{},[1091],{"type":57,"value":1092},"Decommission standard Lambda once stable",{"type":51,"tag":88,"props":1094,"children":1096},{"id":1095},"best-practices",[1097],{"type":57,"value":1098},"Best Practices",{"type":51,"tag":517,"props":1100,"children":1102},{"id":1101},"configuration",[1103],{"type":57,"value":1104},"Configuration",{"type":51,"tag":95,"props":1106,"children":1107},{},[1108,1113,1118,1123,1128,1133],{"type":51,"tag":99,"props":1109,"children":1110},{},[1111],{"type":57,"value":1112},"Do: Start with 2:1 ratio and runtime default concurrency",{"type":51,"tag":99,"props":1114,"children":1115},{},[1116],{"type":57,"value":1117},"Do: Use ARM (Graviton) unless x86 dependencies exist",{"type":51,"tag":99,"props":1119,"children":1120},{},[1121],{"type":57,"value":1122},"Do: Let Lambda choose instance types unless specific hardware needed",{"type":51,"tag":99,"props":1124,"children":1125},{},[1126],{"type":57,"value":1127},"Do: Set MaxVCpuCount to control cost ceiling",{"type":51,"tag":99,"props":1129,"children":1130},{},[1131],{"type":57,"value":1132},"Don't: Set MinExecutionEnvironments below 3 in production (reduces multi-AZ coverage). Non-prod environments can use 1 as the minimum.",{"type":51,"tag":99,"props":1134,"children":1135},{},[1136],{"type":57,"value":1137},"Don't: Over-restrict instance types (lowers availability)",{"type":51,"tag":517,"props":1139,"children":1141},{"id":1140},"migration",[1142],{"type":57,"value":1143},"Migration",{"type":51,"tag":95,"props":1145,"children":1146},{},[1147,1152,1164,1169,1174,1179,1191,1203],{"type":51,"tag":99,"props":1148,"children":1149},{},[1150],{"type":57,"value":1151},"Do: Start with I\u002FO-heavy functions (benefit most from multi-concurrency; CPU-bound functions compete for same CPU)",{"type":51,"tag":99,"props":1153,"children":1154},{},[1155,1157,1162],{"type":57,"value":1156},"Do: Review code for concurrency safety before attaching to capacity provider (thread safety for Node.js\u002FJava\u002F.NET; ",{"type":51,"tag":593,"props":1158,"children":1160},{"className":1159},[],[1161],{"type":57,"value":598},{"type":57,"value":1163}," and memory for Python)",{"type":51,"tag":99,"props":1165,"children":1166},{},[1167],{"type":57,"value":1168},"Do: Plan traffic shifting strategy based on your invocation source (weighted alias shifting between LMI and non-LMI functions is not currently supported)",{"type":51,"tag":99,"props":1170,"children":1171},{},[1172],{"type":57,"value":1173},"Do: Include request IDs in all log statements",{"type":51,"tag":99,"props":1175,"children":1176},{},[1177],{"type":57,"value":1178},"Do: Initialize DB pools and SDK clients outside the handler",{"type":51,"tag":99,"props":1180,"children":1181},{},[1182,1184,1189],{"type":57,"value":1183},"Do: Estimate total ",{"type":51,"tag":593,"props":1185,"children":1187},{"className":1186},[],[1188],{"type":57,"value":598},{"type":57,"value":1190}," usage under max concurrency",{"type":51,"tag":99,"props":1192,"children":1193},{},[1194,1196,1201],{"type":57,"value":1195},"Don't: Write to hardcoded ",{"type":51,"tag":593,"props":1197,"children":1199},{"className":1198},[],[1200],{"type":57,"value":598},{"type":57,"value":1202}," paths without request-unique naming",{"type":51,"tag":99,"props":1204,"children":1205},{},[1206],{"type":57,"value":1207},"Don't: Skip cost comparison — LMI is not always cheaper",{"type":51,"tag":517,"props":1209,"children":1211},{"id":1210},"operations",[1212],{"type":57,"value":1213},"Operations",{"type":51,"tag":95,"props":1215,"children":1216},{},[1217,1222,1227,1232,1237],{"type":51,"tag":99,"props":1218,"children":1219},{},[1220],{"type":57,"value":1221},"Do: Set CloudWatch alarms on throttle rate > 1% and CPU > 80%",{"type":51,"tag":99,"props":1223,"children":1224},{},[1225],{"type":57,"value":1226},"Do: Use scheduled scaling (EventBridge Scheduler) for predictable traffic — raise Min\u002FMax before peak periods and lower them (or scale to zero) when idle",{"type":51,"tag":99,"props":1228,"children":1229},{},[1230],{"type":57,"value":1231},"Don't: Manually terminate LMI EC2 instances (delete the capacity provider instead)",{"type":51,"tag":99,"props":1233,"children":1234},{},[1235],{"type":57,"value":1236},"Don't: Forget to publish a version — unpublished functions cannot run on LMI",{"type":51,"tag":99,"props":1238,"children":1239},{},[1240],{"type":57,"value":1241},"Don't: Rely on a deactivated (Min=Max=0) function to self-recover — schedule an explicit scale-up to reactivate it",{"type":51,"tag":88,"props":1243,"children":1245},{"id":1244},"limits-quick-reference",[1246],{"type":57,"value":1247},"Limits Quick Reference",{"type":51,"tag":352,"props":1249,"children":1250},{},[1251,1267],{"type":51,"tag":356,"props":1252,"children":1253},{},[1254],{"type":51,"tag":360,"props":1255,"children":1256},{},[1257,1262],{"type":51,"tag":364,"props":1258,"children":1259},{},[1260],{"type":57,"value":1261},"Resource",{"type":51,"tag":364,"props":1263,"children":1264},{},[1265],{"type":57,"value":1266},"Limit",{"type":51,"tag":380,"props":1268,"children":1269},{},[1270,1283,1296,1309,1322,1335,1347],{"type":51,"tag":360,"props":1271,"children":1272},{},[1273,1278],{"type":51,"tag":387,"props":1274,"children":1275},{},[1276],{"type":57,"value":1277},"Memory",{"type":51,"tag":387,"props":1279,"children":1280},{},[1281],{"type":57,"value":1282},"2 GB min, 32 GB max",{"type":51,"tag":360,"props":1284,"children":1285},{},[1286,1291],{"type":51,"tag":387,"props":1287,"children":1288},{},[1289],{"type":57,"value":1290},"Concurrency\u002FvCPU",{"type":51,"tag":387,"props":1292,"children":1293},{},[1294],{"type":57,"value":1295},"64 (Node.js), 32 (Java\u002F.NET), 16 (Python)",{"type":51,"tag":360,"props":1297,"children":1298},{},[1299,1304],{"type":51,"tag":387,"props":1300,"children":1301},{},[1302],{"type":57,"value":1303},"Instance lifespan",{"type":51,"tag":387,"props":1305,"children":1306},{},[1307],{"type":57,"value":1308},"~12 hours (auto-replaced by Lambda)",{"type":51,"tag":360,"props":1310,"children":1311},{},[1312,1317],{"type":51,"tag":387,"props":1313,"children":1314},{},[1315],{"type":57,"value":1316},"EE lifespan",{"type":51,"tag":387,"props":1318,"children":1319},{},[1320],{"type":57,"value":1321},"~4 hours (auto-replaced by Lambda)",{"type":51,"tag":360,"props":1323,"children":1324},{},[1325,1330],{"type":51,"tag":387,"props":1326,"children":1327},{},[1328],{"type":57,"value":1329},"Runtimes",{"type":51,"tag":387,"props":1331,"children":1332},{},[1333],{"type":57,"value":1334},"Node.js, Java, .NET, Python",{"type":51,"tag":360,"props":1336,"children":1337},{},[1338,1342],{"type":51,"tag":387,"props":1339,"children":1340},{},[1341],{"type":57,"value":864},{"type":51,"tag":387,"props":1343,"children":1344},{},[1345],{"type":57,"value":1346},"C (.xlarge+), M (.large+), R (.large+)",{"type":51,"tag":360,"props":1348,"children":1349},{},[1350,1354],{"type":51,"tag":387,"props":1351,"children":1352},{},[1353],{"type":57,"value":894},{"type":51,"tag":387,"props":1355,"children":1356},{},[1357],{"type":57,"value":1358},"Doubles within 5 min without throttles",{"type":51,"tag":88,"props":1360,"children":1362},{"id":1361},"troubleshooting-quick-reference",[1363],{"type":57,"value":1364},"Troubleshooting Quick Reference",{"type":51,"tag":352,"props":1366,"children":1367},{},[1368,1389],{"type":51,"tag":356,"props":1369,"children":1370},{},[1371],{"type":51,"tag":360,"props":1372,"children":1373},{},[1374,1379,1384],{"type":51,"tag":364,"props":1375,"children":1376},{},[1377],{"type":57,"value":1378},"Issue",{"type":51,"tag":364,"props":1380,"children":1381},{},[1382],{"type":57,"value":1383},"Cause",{"type":51,"tag":364,"props":1385,"children":1386},{},[1387],{"type":57,"value":1388},"Fix",{"type":51,"tag":380,"props":1390,"children":1391},{},[1392,1410,1428,1446,1464],{"type":51,"tag":360,"props":1393,"children":1394},{},[1395,1400,1405],{"type":51,"tag":387,"props":1396,"children":1397},{},[1398],{"type":57,"value":1399},"429 throttles",{"type":51,"tag":387,"props":1401,"children":1402},{},[1403],{"type":57,"value":1404},"Traffic exceeds scaling speed",{"type":51,"tag":387,"props":1406,"children":1407},{},[1408],{"type":57,"value":1409},"Increase MinExecutionEnvironments or lower TargetResourceUtilization",{"type":51,"tag":360,"props":1411,"children":1412},{},[1413,1418,1423],{"type":51,"tag":387,"props":1414,"children":1415},{},[1416],{"type":57,"value":1417},"Function stuck PENDING",{"type":51,"tag":387,"props":1419,"children":1420},{},[1421],{"type":57,"value":1422},"Provisioning instances",{"type":51,"tag":387,"props":1424,"children":1425},{},[1426],{"type":57,"value":1427},"Wait; check VPC\u002FIAM config",{"type":51,"tag":360,"props":1429,"children":1430},{},[1431,1436,1441],{"type":51,"tag":387,"props":1432,"children":1433},{},[1434],{"type":57,"value":1435},"Architecture mismatch",{"type":51,"tag":387,"props":1437,"children":1438},{},[1439],{"type":57,"value":1440},"Function ≠ capacity provider arch",{"type":51,"tag":387,"props":1442,"children":1443},{},[1444],{"type":57,"value":1445},"Align both to same architecture",{"type":51,"tag":360,"props":1447,"children":1448},{},[1449,1454,1459],{"type":51,"tag":387,"props":1450,"children":1451},{},[1452],{"type":57,"value":1453},"Cannot terminate instances",{"type":51,"tag":387,"props":1455,"children":1456},{},[1457],{"type":57,"value":1458},"Managed by capacity provider",{"type":51,"tag":387,"props":1460,"children":1461},{},[1462],{"type":57,"value":1463},"Delete capacity provider instead",{"type":51,"tag":360,"props":1465,"children":1466},{},[1467,1472,1477],{"type":51,"tag":387,"props":1468,"children":1469},{},[1470],{"type":57,"value":1471},"Race conditions",{"type":51,"tag":387,"props":1473,"children":1474},{},[1475],{"type":57,"value":1476},"Code not thread-safe",{"type":51,"tag":387,"props":1478,"children":1479},{},[1480,1481],{"type":57,"value":911},{"type":51,"tag":71,"props":1482,"children":1483},{"href":220},[1484],{"type":57,"value":220},{"type":51,"tag":60,"props":1486,"children":1487},{},[1488,1489,1493],{"type":57,"value":911},{"type":51,"tag":71,"props":1490,"children":1491},{"href":342},[1492],{"type":57,"value":342},{"type":57,"value":1494}," for detailed resolution steps.",{"type":51,"tag":88,"props":1496,"children":1498},{"id":1497},"configuration-1",[1499],{"type":57,"value":1104},{"type":51,"tag":517,"props":1501,"children":1503},{"id":1502},"aws-cli-setup",[1504],{"type":57,"value":1505},"AWS CLI Setup",{"type":51,"tag":60,"props":1507,"children":1508},{},[1509],{"type":57,"value":1510},"REQUIRED: AWS credentials configured on the host machine.",{"type":51,"tag":60,"props":1512,"children":1513},{},[1514,1519,1521],{"type":51,"tag":103,"props":1515,"children":1516},{},[1517],{"type":57,"value":1518},"Verify access",{"type":57,"value":1520},": Run ",{"type":51,"tag":593,"props":1522,"children":1524},{"className":1523},[],[1525],{"type":57,"value":1526},"aws sts get-caller-identity",{"type":51,"tag":517,"props":1528,"children":1530},{"id":1529},"regional-availability",[1531],{"type":57,"value":1532},"Regional Availability",{"type":51,"tag":60,"props":1534,"children":1535},{},[1536],{"type":57,"value":1537},"Available in all commercial AWS Regions except Israel (Tel Aviv), Middle East (Bahrain), Middle East (UAE), and Asia Pacific (Auckland).",{"type":51,"tag":60,"props":1539,"children":1540},{},[1541,1543,1550],{"type":57,"value":1542},"Check the ",{"type":51,"tag":71,"props":1544,"children":1547},{"href":1545,"rel":1546},"https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Flambda-managed-instances.html",[632],[1548],{"type":57,"value":1549},"Lambda Managed Instances documentation",{"type":57,"value":1551}," for the latest regional availability.",{"type":51,"tag":88,"props":1553,"children":1555},{"id":1554},"language-selection",[1556],{"type":57,"value":1557},"Language Selection",{"type":51,"tag":60,"props":1559,"children":1560},{},[1561],{"type":57,"value":1562},"Default: TypeScript",{"type":51,"tag":60,"props":1564,"children":1565},{},[1566],{"type":57,"value":1567},"Override: \"use Python\" → Python, \"use JavaScript\" → JavaScript. When not specified, ALWAYS use TypeScript.",{"type":51,"tag":88,"props":1569,"children":1571},{"id":1570},"iac-framework-selection",[1572],{"type":57,"value":1573},"IaC Framework Selection",{"type":51,"tag":60,"props":1575,"children":1576},{},[1577],{"type":57,"value":1578},"Default: CDK",{"type":51,"tag":60,"props":1580,"children":1581},{},[1582],{"type":57,"value":1583},"Override: \"use SAM\" → SAM YAML, \"use CloudFormation\" → CloudFormation YAML. When not specified, ALWAYS use CDK.",{"type":51,"tag":88,"props":1585,"children":1587},{"id":1586},"error-scenarios",[1588],{"type":57,"value":1589},"Error Scenarios",{"type":51,"tag":517,"props":1591,"children":1593},{"id":1592},"serverless-mcp-server-unavailable",[1594],{"type":57,"value":1595},"Serverless MCP Server Unavailable",{"type":51,"tag":95,"props":1597,"children":1598},{},[1599,1604,1609],{"type":51,"tag":99,"props":1600,"children":1601},{},[1602],{"type":57,"value":1603},"Inform user: \"AWS Serverless MCP not responding\"",{"type":51,"tag":99,"props":1605,"children":1606},{},[1607],{"type":57,"value":1608},"Ask: \"Proceed without MCP support?\"",{"type":51,"tag":99,"props":1610,"children":1611},{},[1612],{"type":57,"value":1613},"DO NOT continue without user confirmation",{"type":51,"tag":517,"props":1615,"children":1617},{"id":1616},"unsupported-runtime",[1618],{"type":57,"value":1619},"Unsupported Runtime",{"type":51,"tag":95,"props":1621,"children":1622},{},[1623,1636,1641],{"type":51,"tag":99,"props":1624,"children":1625},{},[1626,1628,1634],{"type":57,"value":1627},"State: \"Lambda Managed Instances does not yet support ",{"type":51,"tag":1629,"props":1630,"children":1631},"span",{},[1632],{"type":57,"value":1633},"runtime",{"type":57,"value":1635},"\"",{"type":51,"tag":99,"props":1637,"children":1638},{},[1639],{"type":57,"value":1640},"List supported runtimes",{"type":51,"tag":99,"props":1642,"children":1643},{},[1644],{"type":57,"value":1645},"Suggest standard Lambda as alternative",{"type":51,"tag":517,"props":1647,"children":1649},{"id":1648},"unsupported-region",[1650],{"type":57,"value":1651},"Unsupported Region",{"type":51,"tag":95,"props":1653,"children":1654},{},[1655,1666,1671],{"type":51,"tag":99,"props":1656,"children":1657},{},[1658,1660,1665],{"type":57,"value":1659},"State: \"Lambda Managed Instances is not available in ",{"type":51,"tag":1629,"props":1661,"children":1662},{},[1663],{"type":57,"value":1664},"region",{"type":57,"value":1635},{"type":51,"tag":99,"props":1667,"children":1668},{},[1669],{"type":57,"value":1670},"Name the excluded regions: Israel (Tel Aviv), Middle East (Bahrain), Middle East (UAE), Asia Pacific (Auckland)",{"type":51,"tag":99,"props":1672,"children":1673},{},[1674],{"type":57,"value":1675},"Suggest the nearest supported region",{"type":51,"tag":88,"props":1677,"children":1679},{"id":1678},"resources",[1680],{"type":57,"value":1681},"Resources",{"type":51,"tag":95,"props":1683,"children":1684},{},[1685,1694,1704,1714,1724,1734,1744,1754],{"type":51,"tag":99,"props":1686,"children":1687},{},[1688],{"type":51,"tag":71,"props":1689,"children":1691},{"href":1545,"rel":1690},[632],[1692],{"type":57,"value":1693},"Lambda Managed Instances Docs",{"type":51,"tag":99,"props":1695,"children":1696},{},[1697],{"type":51,"tag":71,"props":1698,"children":1701},{"href":1699,"rel":1700},"https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Flambda-managed-instances-scaling.html",[632],[1702],{"type":57,"value":1703},"Scaling LMI & Scheduled Scaling Docs",{"type":51,"tag":99,"props":1705,"children":1706},{},[1707],{"type":51,"tag":71,"props":1708,"children":1711},{"href":1709,"rel":1710},"https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Faws\u002Fintroducing-aws-lambda-managed-instances-serverless-simplicity-with-ec2-flexibility\u002F",[632],[1712],{"type":57,"value":1713},"Introducing LMI (AWS Blog)",{"type":51,"tag":99,"props":1715,"children":1716},{},[1717],{"type":51,"tag":71,"props":1718,"children":1721},{"href":1719,"rel":1720},"https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuild-high-performance-apps-with-aws-lambda-managed-instances\u002F",[632],[1722],{"type":57,"value":1723},"Build High-Performance Apps with LMI",{"type":51,"tag":99,"props":1725,"children":1726},{},[1727],{"type":51,"tag":71,"props":1728,"children":1731},{"href":1729,"rel":1730},"https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fmigrating-your-functions-to-aws-lambda-managed-instances\u002F",[632],[1732],{"type":57,"value":1733},"Migrating Functions to LMI (AWS Blog)",{"type":51,"tag":99,"props":1735,"children":1736},{},[1737],{"type":51,"tag":71,"props":1738,"children":1741},{"href":1739,"rel":1740},"https:\u002F\u002Faws-samples.github.io\u002Fsample-aws-lambda-managed-instances\u002F",[632],[1742],{"type":57,"value":1743},"LMI Pricing Calculator",{"type":51,"tag":99,"props":1745,"children":1746},{},[1747],{"type":51,"tag":71,"props":1748,"children":1751},{"href":1749,"rel":1750},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fsample-aws-lambda-managed-instances",[632],[1752],{"type":57,"value":1753},"LMI Samples Repository",{"type":51,"tag":99,"props":1755,"children":1756},{},[1757],{"type":51,"tag":71,"props":1758,"children":1761},{"href":1759,"rel":1760},"https:\u002F\u002Faws.amazon.com\u002Flambda\u002Fpricing\u002F",[632],[1762],{"type":57,"value":1763},"AWS Lambda Pricing",{"items":1765,"total":1940},[1766,1784,1805,1815,1826,1839,1849,1859,1880,1895,1910,1925],{"slug":1767,"name":1767,"fn":1768,"description":1769,"org":1770,"tags":1771,"stars":1781,"repoUrl":1782,"updatedAt":1783},"agentcore-investigation","investigate Bedrock AgentCore runtime sessions","Investigate Bedrock AgentCore runtime sessions via CloudWatch Logs Insights — resolve session\u002Ftrace IDs, query OTEL spans, filter noise, build timelines. Use when debugging AgentCore agent sessions, tracing tool calls, or analyzing latency.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1772,1773,1775,1778],{"name":24,"slug":25,"type":16},{"name":1774,"slug":320,"type":16},"Debugging",{"name":1776,"slug":1777,"type":16},"Logs","logs",{"name":1779,"slug":1780,"type":16},"Observability","observability",9427,"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fmcp","2026-07-12T08:37:22.601527",{"slug":1785,"name":1786,"fn":1787,"description":1788,"org":1789,"tags":1790,"stars":1781,"repoUrl":1782,"updatedAt":1804},"amazon-aurora-dsql","amazon aurora dsql","build applications with Aurora DSQL","Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, load data, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL and PostgreSQL-to-DSQL schema conversion, FK replacement code generation, OCC retry patterns, ORM migration (Django\u002FHibernate\u002FRails), DDL operations, query plan explainability, SQL compatibility validation, and bulk data loading. Triggers on phrases like: DSQL, Aurora DSQL, create DSQL table, DSQL schema, migrate to DSQL, distributed SQL database, serverless PostgreSQL-compatible database, DSQL query plan, DSQL EXPLAIN ANALYZE, why is my DSQL query slow, DSQL foreign key, DSQL OCC retry, DSQL multi-region, load into DSQL, load CSV into DSQL, bulk load DSQL, aurora-dsql-loader.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1791,1794,1795,1798,1801],{"name":1792,"slug":1793,"type":16},"Aurora","aurora",{"name":24,"slug":25,"type":16},{"name":1796,"slug":1797,"type":16},"Database","database",{"name":1799,"slug":1800,"type":16},"Serverless","serverless",{"name":1802,"slug":1803,"type":16},"SQL","sql","2026-07-12T08:36:45.053393",{"slug":1806,"name":1807,"fn":1787,"description":1788,"org":1808,"tags":1809,"stars":1781,"repoUrl":1782,"updatedAt":1814},"aurora-dsql","aurora dsql",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1810,1811,1812,1813],{"name":24,"slug":25,"type":16},{"name":1796,"slug":1797,"type":16},{"name":1799,"slug":1800,"type":16},{"name":1802,"slug":1803,"type":16},"2026-07-12T08:36:42.694299",{"slug":1816,"name":1817,"fn":1787,"description":1788,"org":1818,"tags":1819,"stars":1781,"repoUrl":1782,"updatedAt":1825},"aws-dsql","aws dsql",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1820,1821,1822,1823,1824],{"name":24,"slug":25,"type":16},{"name":1796,"slug":1797,"type":16},{"name":1143,"slug":1140,"type":16},{"name":1799,"slug":1800,"type":16},{"name":1802,"slug":1803,"type":16},"2026-07-12T08:36:38.584057",{"slug":1827,"name":1828,"fn":1787,"description":1788,"org":1829,"tags":1830,"stars":1781,"repoUrl":1782,"updatedAt":1838},"distributed-postgres","distributed postgres",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1831,1832,1833,1836,1837],{"name":24,"slug":25,"type":16},{"name":1796,"slug":1797,"type":16},{"name":1834,"slug":1835,"type":16},"PostgreSQL","postgresql",{"name":1799,"slug":1800,"type":16},{"name":1802,"slug":1803,"type":16},"2026-07-12T08:36:46.530743",{"slug":1840,"name":1841,"fn":1787,"description":1788,"org":1842,"tags":1843,"stars":1781,"repoUrl":1782,"updatedAt":1848},"distributed-sql","distributed sql",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1844,1845,1846,1847],{"name":24,"slug":25,"type":16},{"name":1796,"slug":1797,"type":16},{"name":1799,"slug":1800,"type":16},{"name":1802,"slug":1803,"type":16},"2026-07-12T08:36:48.104182",{"slug":1850,"name":1850,"fn":1787,"description":1788,"org":1851,"tags":1852,"stars":1781,"repoUrl":1782,"updatedAt":1858},"dsql",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1853,1854,1855,1856,1857],{"name":24,"slug":25,"type":16},{"name":1796,"slug":1797,"type":16},{"name":1143,"slug":1140,"type":16},{"name":1799,"slug":1800,"type":16},{"name":1802,"slug":1803,"type":16},"2026-07-12T08:36:36.374512",{"slug":1860,"name":1860,"fn":1861,"description":1862,"org":1863,"tags":1864,"stars":1877,"repoUrl":1878,"updatedAt":1879},"cost-efficiency-analyzer","analyze cost efficiency and expenses","Analyzes cost structure, cost efficiency, and expense management from P&L data. Use when the user asks about costs, expenses, COGS, operating expenses, cost ratios, cost control, spending efficiency, margin compression from cost side, or wants to understand where money is going. Also use for \"are we spending too much\", \"cost breakdown\", \"expense analysis\", or \"how efficient are our operations\". NOT for revenue or top-line analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1865,1868,1871,1874],{"name":1866,"slug":1867,"type":16},"Accounting","accounting",{"name":1869,"slug":1870,"type":16},"Analytics","analytics",{"name":1872,"slug":1873,"type":16},"Cost Optimization","cost-optimization",{"name":1875,"slug":1876,"type":16},"Finance","finance",3176,"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagentcore-samples","2026-07-12T08:40:03.29555",{"slug":1881,"name":1881,"fn":1882,"description":1883,"org":1884,"tags":1885,"stars":1877,"repoUrl":1878,"updatedAt":1894},"executive-financial-briefing","generate executive financial briefings","Generates a concise executive-level financial briefing or summary suitable for a CEO, CFO, or board presentation. Use when the user asks for a summary, briefing, executive summary, board update, financial overview, financial health check, or \"how is the business doing\". Covers the full P&L picture in one page. Also use for \"give me the highlights\", \"what do I need to know\", or \"quick financial update\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1886,1887,1888,1891],{"name":24,"slug":25,"type":16},{"name":1875,"slug":1876,"type":16},{"name":1889,"slug":1890,"type":16},"Management","management",{"name":1892,"slug":1893,"type":16},"Reporting","reporting","2026-07-12T08:40:02.066471",{"slug":1896,"name":1896,"fn":1897,"description":1898,"org":1899,"tags":1900,"stars":1877,"repoUrl":1878,"updatedAt":1909},"multi-quarter-trend-analysis","analyze multi-quarter financial trends","Analyzes financial trends across multiple quarters by comparing P&L metrics over time. Use when the user wants to see trends, patterns, trajectories, or directional movement across 3 or more quarters. Also use for \"how are we trending\", \"show me the trend\", \"track performance over time\", \"quarter over quarter comparison across all quarters\", or any multi-period longitudinal analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1901,1902,1903,1906],{"name":1869,"slug":1870,"type":16},{"name":1875,"slug":1876,"type":16},{"name":1904,"slug":1905,"type":16},"Financial Statements","financial-statements",{"name":1907,"slug":1908,"type":16},"Variance Analysis","variance-analysis","2026-07-12T08:40:00.79141",{"slug":1911,"name":1911,"fn":1912,"description":1913,"org":1914,"tags":1915,"stars":1877,"repoUrl":1878,"updatedAt":1924},"pdf","process and manipulate PDF documents","Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text\u002Ftables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting\u002Fdecrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1916,1919,1922],{"name":1917,"slug":1918,"type":16},"Automation","automation",{"name":1920,"slug":1921,"type":16},"Documents","documents",{"name":1923,"slug":1911,"type":16},"PDF","2026-07-12T08:41:44.135656",{"slug":1926,"name":1926,"fn":1927,"description":1928,"org":1929,"tags":1930,"stars":1877,"repoUrl":1878,"updatedAt":1939},"quarterly-kpi-calculator","calculate quarterly financial KPIs","Calculates quarterly financial KPIs from P&L data. P&L figures can be provided directly by the user or fetched from the financial data MCP server. Use when the user wants KPI calculations such as Gross Margin %, EBITDA Margin %, Operating Expense Ratio, or Revenue Growth % QoQ. Also use for quarterly performance review, P&L analysis, or interpreting financial ratios against benchmarks.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1931,1932,1935,1936],{"name":1866,"slug":1867,"type":16},{"name":1933,"slug":1934,"type":16},"Data Analysis","data-analysis",{"name":1875,"slug":1876,"type":16},{"name":1937,"slug":1938,"type":16},"KPI","kpi","2026-07-12T08:39:59.54971",150,{"items":1942,"total":2033},[1943,1960,1976,1988,2005,2016,2026],{"slug":1944,"name":1944,"fn":1945,"description":1946,"org":1947,"tags":1948,"stars":26,"repoUrl":27,"updatedAt":1959},"amazon-location-service","integrate Amazon Location Service maps","Integrates Amazon Location Service APIs for AWS applications. Use this skill when users want to add maps (interactive MapLibre or static images); geocode addresses to coordinates or reverse geocode coordinates to addresses; calculate routes, travel times, or service areas; find places and businesses through text search, nearby search, or autocomplete suggestions; retrieve detailed place information including hours, contacts, and addresses; monitor geographical boundaries with geofences; or track device locations. Covers authentication, SDK integration, and all Amazon Location Service capabilities.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1949,1952,1953,1956],{"name":1950,"slug":1951,"type":16},"API Development","api-development",{"name":24,"slug":25,"type":16},{"name":1954,"slug":1955,"type":16},"Maps","maps",{"name":1957,"slug":1958,"type":16},"Navigation","navigation","2026-07-12T08:39:49.88311",{"slug":1961,"name":1961,"fn":1962,"description":1963,"org":1964,"tags":1965,"stars":26,"repoUrl":27,"updatedAt":1975},"amplify-workflow","build and deploy apps with AWS Amplify","Build and deploy full-stack web and mobile apps with AWS Amplify Gen2 (TypeScript code-first). Covers auth (Cognito), data (AppSync\u002FDynamoDB including schema modeling, enum types, relationships, authorization rules), storage (S3), functions, APIs, and AI (Amplify AI Kit with Bedrock). Supports React, Next.js, Vue, Angular, React Native, Flutter, Swift, and Android. Always use this skill for Amplify Gen2 topics — even for questions you think you know — it contains validated, version-specific patterns that prevent common mistakes. TRIGGER when: user mentions Amplify Gen2; project has amplify\u002F directory or amplify_outputs; code imports @aws-amplify packages; user asks about defineBackend, defineAuth, defineData, defineStorage, or npx ampx. SKIP: Amplify Gen1 (amplify CLI v6), standalone SAM\u002FCDK without Amplify (use aws-serverless), direct Bedrock without Amplify AI Kit (use bedrock).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1966,1969,1970,1971,1972],{"name":1967,"slug":1968,"type":16},"Auth","auth",{"name":24,"slug":25,"type":16},{"name":1796,"slug":1797,"type":16},{"name":18,"slug":19,"type":16},{"name":1973,"slug":1974,"type":16},"TypeScript","typescript","2026-07-12T08:39:43.500162",{"slug":1977,"name":1977,"fn":1978,"description":1979,"org":1980,"tags":1981,"stars":26,"repoUrl":27,"updatedAt":1987},"api-gateway","build and manage Amazon API Gateway APIs","Build, manage, and operate APIs with Amazon API Gateway (REST, HTTP, and WebSocket). Triggers on phrases like: API Gateway, REST API, HTTP API, WebSocket API, custom domain, Lambda authorizer, usage plan, throttling, CORS, VPC link, private API. Also covers troubleshooting API Gateway errors (4xx, 5xx, timeout, CORS failures) and IaC templates containing API Gateway resources. For general REST API design unrelated to AWS, do not trigger.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1982,1983,1984],{"name":1950,"slug":1951,"type":16},{"name":24,"slug":25,"type":16},{"name":1985,"slug":1986,"type":16},"REST API","rest-api","2026-07-12T08:39:00.149339",{"slug":1989,"name":1989,"fn":1990,"description":1991,"org":1992,"tags":1993,"stars":26,"repoUrl":27,"updatedAt":2004},"aws-architecture-diagram","generate AWS architecture diagrams","Generate validated AWS architecture diagrams as draw.io XML using official AWS4 icon libraries. Use this skill whenever the user wants to create, generate, or design AWS architecture diagrams, cloud infrastructure diagrams, or system design visuals. Also triggers for requests to visualize existing infrastructure from CloudFormation, CDK, or Terraform code. Supports two modes: analyze an existing codebase to auto-generate diagrams, or brainstorm interactively from scratch. Exports .drawio files with optional PNG\u002FSVG\u002FPDF export via draw.io desktop CLI.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1994,1997,1998,2001],{"name":1995,"slug":1996,"type":16},"Architecture","architecture",{"name":24,"slug":25,"type":16},{"name":1999,"slug":2000,"type":16},"Design","design",{"name":2002,"slug":2003,"type":16},"Diagrams","diagrams","2026-07-12T08:37:11.012278",{"slug":2006,"name":2006,"fn":2007,"description":2008,"org":2009,"tags":2010,"stars":26,"repoUrl":27,"updatedAt":2015},"aws-lambda","build and deploy AWS Lambda functions","Design, build, deploy, test, and debug serverless applications with AWS Lambda. Triggers on phrases like: Lambda function, event source, serverless application, API Gateway, EventBridge, Step Functions, serverless API, event-driven architecture, Lambda trigger. For deploying non-serverless apps to AWS, use deploy-on-aws plugin instead.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2011,2012,2013,2014],{"name":1950,"slug":1951,"type":16},{"name":24,"slug":25,"type":16},{"name":18,"slug":19,"type":16},{"name":1799,"slug":1800,"type":16},"2026-07-12T08:38:58.598492",{"slug":2017,"name":2017,"fn":2018,"description":2019,"org":2020,"tags":2021,"stars":26,"repoUrl":27,"updatedAt":2025},"aws-lambda-durable-functions","build resilient AWS Lambda durable functions","Build resilient, long-running, multi-step applications with AWS Lambda durable functions with automatic state persistence, retry logic, and orchestration for long-running executions. Covers the critical replay model, step operations, wait\u002Fcallback patterns, error handling with saga pattern, testing with LocalDurableTestRunner. Triggers on phrases like: lambda durable functions, workflow orchestration, state machines, retry\u002Fcheckpoint patterns, long-running stateful Lambda functions, saga pattern, human-in-the-loop callbacks, and reliable serverless applications.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2022,2023,2024],{"name":1995,"slug":1996,"type":16},{"name":24,"slug":25,"type":16},{"name":1799,"slug":1800,"type":16},"2026-07-12T08:39:05.546173",{"slug":4,"name":4,"fn":5,"description":6,"org":2027,"tags":2028,"stars":26,"repoUrl":27,"updatedAt":28},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2029,2030,2031,2032],{"name":24,"slug":25,"type":16},{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},33]