Skip to content
Back to skills

Aws Serverless

ASecurity

Build and change AWS Lambda services: handler design, IAM least privilege, cold starts, retries and observability

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentsawsterraformperformance

Works with

  • cli

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill aws-serverless --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Aws Serverless?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Aws Serverless
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-aws-serverless/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-aws-serverless)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: aws-serverless
description: "Build and change AWS Lambda services: handler design, IAM least privilege, cold starts, retries and observability"
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# AWS serverless

Use when writing or changing Lambda functions and their event sources.

## Handlers
- Keep handlers thin: parse and validate the event, call domain code, then return. Initialize clients outside the handler so they are reused across invocations.
- Make handlers idempotent. SQS, EventBridge and async invokes deliver at least once, so use an idempotency key (for example a DynamoDB conditional write).

## Failure handling
Configure DLQs or on-failure destinations, partial batch responses for SQS (`batchItemFailures`), and timeouts lower than the event source's visibility timeout.

## IAM
One role per function with only the actions and resources it needs. No `*` in production policies. Read secrets from Secrets Manager or Parameter Store at init, and cache them.

## Performance and cost
Right-size memory, which also scales CPU (measure it). Keep deployment packages small, and use provisioned concurrency or SnapStart only where cold starts matter.

## Observability
Use structured JSON logs with a request id, metrics for errors, throttles and duration, tracing (X-Ray or OpenTelemetry), and alarms on the error rate and DLQ depth.

## Infrastructure
Define everything as code (CDK, SAM or Terraform). Do not change functions in the console.

## Verify
Unit tests for domain code, an invocation with a recorded real event, and a deploy to a non-production stage with a smoke test.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.