/serverless-compute-skills:aws-lambda-configuration-validationfrom serverless-compute-skills
Validates AWS Lambda configuration before deploy — checks reserved/provisioned concurrency budget, VPC networking, environment variables, IAM role scope, and failure handling to catch issues that surface only in production.
Ships in serverless-compute-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Lambda configuration mistakes rarely fail at deploy time — aws lambda update-function-configuration almost always succeeds even when the
resulting configuration is unsafe. A reserved concurrency value that
starves the rest of the account, a VPC subnet with too few free IPs, a
plaintext secret in an environment variable, or an execution role widened
"to make it work" all pass a normal deploy and only surface later as
throttling, an incident, or a security finding. This skill is the pre-deploy
gate that catches those problems before they reach production, complementing
aws-lambda-packaging-and-configuration,
which covers how to build the configuration in the first place.
TooManyRequestsException after a new function was deployed.lambda:GetFunctionConfiguration,
lambda:GetAccountSettings, lambda:ListFunctions, and
iam:GetRolePolicy/iam:ListAttachedRolePolicies read permissions.jq for parsing CLI JSON output in shell-based checks.cfn-lint, checkov, or tflint
(whichever matches the IaC tool in use) as a first-pass schema/policy
check, with this skill's checks layered on top for Lambda-specific
semantics those generic tools don't cover.Check reserved concurrency against the account's shared concurrency pool before setting or raising it. Every AWS account has an account-level concurrency limit per region, shared across all functions; reserved concurrency configured on one function is carved out of that shared pool and is unavailable to every other function, including ones with no reserved concurrency configured at all:
aws lambda get-account-settings --query 'AccountLimit'
aws lambda list-functions \
--query "Functions[?ReservedConcurrentExecutions!=null].[FunctionName,ReservedConcurrentExecutions]" \
--output table
Sum existing reserved concurrency, add the new/changed value, and confirm meaningful headroom remains for functions with no reservation — if the sum approaches the account limit, request a quota increase (via Service Quotas) before deploying, don't just proceed.
Validate VPC configuration, if present, before it ships. Confirm subnets span multiple Availability Zones (a single-AZ Lambda VPC config is a resilience gap), that each subnet has enough free IP addresses to absorb burst concurrency, and that the security group's egress rules actually allow the destinations the function calls (including AWS service endpoints, if reached over the internet or via VPC endpoints):
aws lambda get-function-configuration --function-name my-fn --query 'VpcConfig'
aws ec2 describe-subnets --subnet-ids <SUBNET_ID> --query 'Subnets[0].AvailableIpAddressCount'
If the function only calls AWS APIs (not resources inside the VPC), confirm it actually needs VPC attachment at all — removing unnecessary VPC config is usually the simpler and safer fix.
Validate environment variables: total size must stay under the 4 KB combined limit, no plaintext secrets should be present, and every variable the code reads at runtime should have a value set for the target stage:
aws lambda get-function-configuration --function-name my-fn --query 'Environment.Variables'
A secret-shaped value (API key, connection string with a password) here is a finding — it should be replaced with a reference resolved at runtime via Secrets Manager or SSM Parameter Store (SecureString), not stored as plaintext configuration.
Validate the execution role's policy is scoped to specific resource ARNs, not wildcards:
aws iam list-attached-role-policies --role-name my-fn-execution-role
aws iam get-role-policy --role-name my-fn-execution-role --policy-name my-fn-inline-policy
Flag any statement with "Resource": "*" paired with a mutating action
(s3:*, dynamodb:*, iam:*) as a required fix, not a warning to
note and move past.
Validate failure handling is configured for asynchronous invocations (S3 event notifications, SNS, EventBridge targets) — a function with no Dead Letter Queue or on-failure destination silently drops events that exhaust their retry attempts:
aws lambda get-function-event-invoke-config --function-name my-fn \
--query '{DLQ: DestinationConfig.OnFailure, MaxRetry: MaximumRetryAttempts}'
Wire these checks into CI as a gate, not a manual step someone remembers to run. A minimal shell gate:
#!/usr/bin/env bash
set -euo pipefail
FN=my-fn
ACCOUNT_LIMIT=$(aws lambda get-account-settings --query 'AccountLimit.ConcurrentExecutions' --output text)
RESERVED_SUM=$(aws lambda list-functions \
--query "sum(Functions[?ReservedConcurrentExecutions!=null].ReservedConcurrentExecutions)" --output text)
if [ "$RESERVED_SUM" -gt "$((ACCOUNT_LIMIT * 80 / 100))" ]; then
echo "FAIL: reserved concurrency sum ($RESERVED_SUM) exceeds 80% of account limit ($ACCOUNT_LIMIT)"
exit 1
fi
ROLE_POLICY=$(aws lambda get-function-configuration --function-name "$FN" --query 'Role' --output text)
echo "Checked $FN against role $ROLE_POLICY — see IAM checks above for manual/checkov follow-up."
ConcurrentExecutions vs. account limit), not just
at validation time — the shared pool can be consumed gradually as more
functions are added over time.Symptom: Unrelated functions across the account start throttling
with TooManyRequestsException shortly after a new function was
deployed with a large reserved concurrency setting.
Fix: The new function's reserved concurrency was carved out of the
account's shared pool without checking remaining headroom; reduce it,
request an account concurrency quota increase, or use provisioned
concurrency scoped to a specific alias instead if the goal was
cold-start mitigation, not concurrency isolation.
Symptom: Adding VPC configuration to a function causes slow scale-up or ENI-related throttling under burst traffic. Fix: Verify subnet free-IP capacity across all AZs the function's VPC config references, and prefer VPC endpoints over NAT gateway routing for AWS service calls to reduce contention — or remove VPC attachment entirely if the function doesn't reach private resources.
Symptom: A deploy pipeline reports success, but production traffic
keeps hitting the previous version's behavior.
Fix: Configuration was updated on $LATEST but a pinned alias
(prod) still points at an older version; validate the alias's target
version and its resolved configuration, not just $LATEST, after every
deploy.
Symptom: aws lambda get-function-configuration shows a
recognizable secret value (API key, DB password) directly in
Environment.Variables.
Fix: Treat this as a real security finding — move it to Secrets
Manager or SSM Parameter Store SecureString and have the function
resolve it at runtime, then rotate the exposed secret.
Symptom: An async-invoked function's failures never show up
anywhere — no alert, no retry record — until a downstream team notices
missing data.
Fix: Configure a Dead Letter Queue or on-failure destination on
the event invoke config, and alarm on messages landing there; validate
this is set on every async-triggered function before deploy, not after
the first silent data loss.
Scenario: A CI pipeline is about to deploy a change that adds
ReservedConcurrentExecutions: 200 to a new order-processing function in
an account whose total concurrency limit is 1,000, and where five other
functions already reserve a combined 700.
Validation run:
$ aws lambda get-account-settings --query 'AccountLimit.ConcurrentExecutions' --output text
1000
$ aws lambda list-functions \
--query "sum(Functions[?ReservedConcurrentExecutions!=null].ReservedConcurrentExecutions)" --output text
700
Adding 200 more brings the reserved total to 900 against a 1000
limit, leaving only 100 unreserved for every other function in the
account, including ones with no reservation configured — below the 80%
soft threshold used as a gate in step 6's script, this deploy is flagged
to fail CI. The fix applied: request an account concurrency quota
increase via Service Quotas before this deploy proceeds, and separately
confirm with the order-processing team whether 200 is actually needed
or whether a lower reservation (sized to expected peak throughput) is
sufficient. The pipeline is re-run only after the quota increase is
approved and the reserved value is confirmed against real traffic
projections, not a round number picked without data.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/aws-lambda-packaging-and-configurationPackages an AWS Lambda function as a zip deployment package or container image, tunes memory/timeout/ephemeral storage, mitigates cold starts, and scopes the function's IAM execution role to least privilege. Use when the user asks to "package a Lambda function," "build a container image for Lambda," "reduce Lambda cold start latency," "tune Lambda memory or timeout," "add a Lambda layer," or "scope down a Lambda execution role."
/azure-functions-configurationConfigures Azure Functions hosting plans (Consumption, Premium, Dedicated/App Service), triggers and bindings, and host.json/ application settings, with explicit cold-start tradeoffs between plans. Use when the user asks to "choose an Azure Functions hosting plan," "set up a Function App trigger or binding," "reduce Azure Functions cold start," "configure Premium plan pre-warmed instances," or "write host.json for a Function App."
/dapr-configuration-validationValidates Dapr component configurations — state store, pub/sub, and binding components — before deploy, catching missing scopes, inline secrets, unbounded retries, and resiliency gaps that `kubectl apply` won't reject. Use when the user asks to "validate a Dapr component before deploy," "check Dapr component scoping," "review a Dapr pub/sub config for secrets," "add a pre-deploy gate for Dapr components," or "why did my Dapr component apply but not work as expected."
/dapr-distributed-runtime-configurationConfigures Dapr's sidecar building blocks — state management, pub/sub, and service invocation — for polyglot microservices, including component YAML, sidecar annotations, and resiliency policies. Use when the user asks to "add a Dapr state store component," "set up Dapr pub/sub between services," "call another service via Dapr service invocation," "configure a Dapr sidecar for a Kubernetes deployment," or "add retry/circuit-breaker resiliency to a Dapr building block."
/google-cloud-functions-configurationConfigures Google Cloud Functions Gen1 vs. Gen2 (Cloud Run-backed) runtime differences, HTTP/event/CloudEvent triggers, and min/max instance scaling settings, including concurrency and cold-start tradeoffs unique to each generation. Use when the user asks to "choose Cloud Functions Gen1 or Gen2," "set min instances on a Cloud Function," "configure a Pub/Sub or Eventarc trigger," "reduce Cloud Functions cold start," "migrate a function from Gen1 to Gen2," or "why is my Cloud Function scaling past max instances."
/hashicorp-nomad-scheduling-and-configurationConfigures HashiCorp Nomad job specifications, scheduler types, and cluster topology as a lighter-weight alternative to Kubernetes for scheduling containers, binaries, and batch/system workloads. Use when the user asks to "write a Nomad job spec," "choose service vs. batch vs. system scheduler in Nomad," "compare Nomad to Kubernetes for our use case," "set up Nomad server/client topology," "add a Nomad update/canary deployment strategy," or "run non-containerized workloads under a scheduler."
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin serverless-compute-skillsOther plugins' skills for the same job