AWS Serverless Skill · Development

AWS Serverless Skill for Developers

Master AWS serverless with Lambda, API Gateway, DynamoDB, and SQS/SNS.

Covers 4 core patterns and cold start optimization. Download now.

  • Lambda
  • API Gateway
  • DynamoDB
  • SQS
  • SNS
  • CDK

About This Skill

This specialized skill covers 4 major patterns for building production-ready serverless applications on AWS: Lambda handlers, API Gateway, DynamoDB, and event-driven messaging with SQS/SNS. Includes 8 core principles and cold start optimization techniques.

Quick Start

  1. 1Install AWS CLI and SAM CLI
  2. 2Create a new SAM project with `sam init`
  3. 3Deploy your first Lambda function with `sam deploy --guided`
Example Command
sam init --runtime nodejs18.x --name my-serverless-app

Core Capabilities

Lambda Handler Pattern

Proper Lambda function structure with error handling, reusable clients, and API Gateway compatible responses.

DynamoDB Integration

Optimized DynamoDB access patterns with single-table design, query/scan best practices, and TTL management.

API Gateway & HTTP APIs

Configure REST and HTTP APIs with validation, throttling, and CORS. Prefer HTTP API for simple use cases.

Event-Driven Patterns (SQS/SNS)

Implement decoupled architectures with SQS queues, SNS topics, DLQs, and retry logic for fault tolerance.

Usage Examples

Before

Monolithic Lambda with inline DynamoDB calls, no error handling, and cold start delays >2s.

After

Optimized handler with reusable DynamoDB client, structured error handling, and SnapStart enabled reducing cold starts to <200ms.

Input

Set up an event-driven workflow using SQS and Lambda for order processing

Output

An SQS queue triggers a Lambda function that processes orders asynchronously, with a DLQ for failed messages and retry logic.

Input

Deploy a serverless API using SAM with multiple endpoints

Output

A SAM template defining Lambda functions, API Gateway resources, and DynamoDB tables, deployed with `sam deploy`.

SKILL.md

---
name: aws-serverless
description: Specialized skill for building production-ready serverless
  applications on AWS. Covers Lambda functions, API Gateway, DynamoDB, SQS/SNS
  event-driven patterns, SAM/CDK deployment, and cold start optimization.
risk: unknown
source: vibeship-spawner-skills (Apache 2.0)
date_added: 2026-02-27
---

# AWS Serverless

Specialized skill for building production-ready serverless applications on AWS.
Covers Lambda functions, API Gateway, DynamoDB, SQS/SNS event-driven patterns,
SAM/CDK deployment, and cold start optimization.

## Principles

- Right-size memory and timeout (measure before optimizing)
- Minimize cold starts for latency-sensitive workloads
- Use SnapStart for Java/.NET functions
- Prefer HTTP API over REST API for simple use cases
- Design for failure with DLQs and retries
- Keep deployment packages small
- Use environment variables for configuration
- Implement structured logging with correlation IDs

## Patterns

### Lambda Handler Pattern

Proper Lambda function structure with error handling

**When to use**: Any Lambda function implementation,API handlers, event processors, scheduled tasks

```javascript
// Node.js Lambda Handler
// handler.js

// Initialize outside handler (reused across invocations)
const { DynamoDBClient } = require('@aws-sdk/client-dynamodb');
const { DynamoDBDocumentClient, GetCommand } = require('@aws-sdk/lib-dynamodb');

const client = new DynamoDBClient({});
const docClient = DynamoDBDocumentClient.from(client);

// Handler function
exports.handler = async (event, context) => {
  // Optional: Don't wait for event loop to clear (Node.js)
  context.callbackWaitsForEmptyEventLoop = false;

  try {
    // Parse input based on event source
    const body = typeof event.body === 'string'
      ? JSON.parse(event.body)
      : event.body;

    // Business logic
    const result = await processRequest(body);

    // Return API Gateway compatible response
    return {
      statusCode: 200,
      head

Frequently Asked Questions

FAQ

What tools and AWS services are covered in this skill?
The skill covers Lambda, API Gateway (REST and HTTP), DynamoDB, SQS, SNS, SAM, CDK, and SnapStart for Java/.NET functions.
Who is this skill for?
This skill is for developers and software engineers who want to build production-ready serverless applications on AWS, from beginners to experienced cloud practitioners.
How is this different from general AWS tutorials?
Unlike generic tutorials, this skill focuses on production-ready patterns including cold start optimization, DLQs, structured logging, and right-sizing memory/timeout based on measurement.
What programming languages are supported?
The skill includes examples in Node.js, but the patterns apply to Python, Java, .NET, and Go. SnapStart specifically targets Java and .NET runtimes.
What results can I expect after completing this skill?
You will be able to design and deploy scalable serverless applications with reduced cold starts (under 200ms with SnapStart), fault-tolerant event-driven architectures, and optimized DynamoDB access patterns.

Discussion

Discussion

0 comments
U

Trigger Phrases

Use these phrases to activate this skill in your AI coding assistant:

AWS serverless developmentLambda best practicesserverless patternscold start optimizationevent-driven architecture AWSSAM deployment