Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Designs, builds, deploys, tests, and debugs serverless applications on AWS Lambda using the AWS Serverless MCP Server.
59% 86%+27 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 13 of 22 without it.
3 of 3 safety checks passed
Not used yet
Lambda allocates CPU proportionally to memory. The goal is to find the configuration where cost-per-invocation is minimized while meeting latency requirements.
Strategy:
get_metrics to measure current duration, memory utilization, and invocation countGeneral guidelines:
CPU scaling: Lambda allocates CPU proportionally to memory. At 1,769 MB a function has the equivalent of one full vCPU. Functions below this threshold share a single vCPU. If your function is CPU-bound, the optimal memory setting is often 1,769 MB or higher.
arm64 (Graviton) savings: arm64 is approximately 20% cheaper per GB-second than x86_64 and typically provides equal or faster performance. This is the single easiest cost optimization for most functions. Use x86_64 only when you depend on x86-only native binaries — older Python C extension wheels (NumPy, Pandas pre-built for x86), Node.js native addons compiled for x86, or vendor-provided Lambda layers that ship only x86 binaries. Most pure-Python, pure-Node.js, and Java/Go/.NET workloads run on arm64 without changes.
Lambda Power Tuning is an open-source Step Functions state machine that automates memory/cost optimization. It invokes your function at multiple memory settings, measures duration and cost, and recommends the optimal configuration.
How it works:
Deploy via SAR (simplest):
aws serverlessrepo create-cloud-formation-change-set \
--application-id arn:aws:serverlessrepo:us-east-1:451282441545:applications/aws-lambda-power-tuning \
--stack-name lambda-power-tuning \
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.