SST - Serverless Stack Framework for AWS

VerifiedSafe

SST is a framework for building and deploying full-stack applications on AWS with high-level constructs (Lambda, API Gateway, DynamoDB, etc.). It features live local development connected to real AWS services.

Sby Skills Guide Bot
DevOpsIntermediate
7/23/2026
Claude CodeCursorWindsurfCodex
#sst#aws#serverless#infrastructure-as-code#deployment

Recommended for

Automated summary

This skill guides the use of SST (Serverless Stack) to define typed AWS infrastructure in TypeScript, link resources to Lambda functions, and deploy full-stack apps per stage.

Strengths

  • Explains resource linking through the `link` property and access via `Resource.Name`, avoiding hand-written IAM policies
  • Covers the full workflow: `sst dev` with hot reload against real AWS services, staged deploys, and `sst remove` teardown
  • Provides concrete conventions for deploying frontends (Nextjs, Remix, Astro) and for managing stage-specific secrets
  • Enforces a clear split between thin handlers in `packages/functions/` and business logic in `packages/core/`

Limitations

  • The skill is strictly AWS-focused: no other cloud or provider is considered
  • It does not go into authentication, queues, or custom domains beyond what it explicitly names
  • `sst dev` requires valid AWS credentials and runs against real resources, with the associated cost and risk
When to use it

Use it to design, link, or deploy a serverless application on AWS with SST, including per-pull-request preview environments.

When not to use it

Avoid it if you target a cloud other than AWS, if you are not using SST, or if you want infrastructure work with no dependency on live AWS services.

Security analysis

Safe
Quality score88/100

The skill is purely instructional documentation for using the SST framework. It references standard AWS deployment and teardown commands such as `sst deploy` and `sst remove --stage dev`, but contains no destructive, exfiltrating, obfuscated, or safety-disabling instructions.

No concerns found

How this analysis is made

Examples

Serverless API with DynamoDB
Create an SST app with an API Gateway route backed by a DynamoDB table. Link the table to the handler functions so permissions are generated automatically, and access it via Resource.MyTable in the handlers.
Per-PR preview environments
Set up CI so each pull request deploys its own SST stage with `sst deploy --stage pr-${PR_NUMBER}`, and add a cleanup step running `sst remove` when the PR is closed.
Next.js on AWS with custom domain
Deploy my Next.js app on AWS using the sst.aws.Nextjs component with a custom domain, and link my existing API and database resources to it.

SST

Overview

SST (Serverless Stack) is a framework for building and deploying full-stack applications on AWS with high-level constructs for Lambda, API Gateway, DynamoDB, S3, and frontend frameworks. It features live local development connected to real AWS services, type-safe resource linking, and zero-config TypeScript support.

Instructions

  • When defining infrastructure, use sst.config.ts with typed components like sst.aws.Function, sst.aws.Api, sst.aws.Bucket, and sst.aws.Dynamo.
  • When connecting resources, use the link property on Functions to automatically grant IAM permissions and inject environment variables, and access linked resources via Resource.Name in handlers.
  • When developing locally, use sst dev which runs Lambda locally with hot reload while connected to real AWS services (DynamoDB, S3, SQS), with support for VS Code breakpoint debugging.
  • When deploying, use sst deploy --stage prod for named stages, sst deploy --stage pr-${PR_NUMBER} for preview environments, and sst remove --stage dev for teardown.
  • When deploying frontends, use sst.aws.Nextjs, sst.aws.Remix, or sst.aws.Astro components for SSR on Lambda with static assets on S3 + CloudFront.
  • When managing secrets, use sst secret set KEY value for encrypted, stage-specific secret storage.
  • When organizing code, keep handlers thin in packages/functions/ as orchestrators, and place business logic in packages/core/.

Examples

Example 1: Build a serverless API with DynamoDB

User request: "Create a REST API on AWS with DynamoDB using SST"

Actions:

  1. Define DynamoDB table and API Gateway in sst.config.ts
  2. Link the table to API handler functions for automatic permissions
  3. Implement CRUD handlers accessing Resource.MyTable.name
  4. Run sst dev for live local development against real AWS services

Output: A serverless REST API with type-safe resource access and live debugging.

Example 2: Deploy a Next.js app with preview environments

User request: "Deploy my Next.js app on AWS with per-PR preview environments"

Actions:

  1. Configure sst.aws.Nextjs component with custom domain and linked resources
  2. Set up CI to run sst deploy --stage pr-${PR_NUMBER} for each pull request
  3. Link backend resources (API, database) to the Next.js deployment
  4. Add cleanup step with sst remove when PR is closed

Output: A production Next.js deployment on AWS with isolated preview environments for each PR.

Guidelines

  • Use link instead of manual IAM policies; SST generates least-privilege permissions automatically.
  • Access linked resources via Resource.Name in handlers; never hardcode table names or bucket ARNs.
  • Use sst dev for daily development; it is faster than deploying to AWS on every change.
  • Create per-developer stages (sst dev --stage alice) so each developer gets isolated AWS resources.
  • Keep handlers thin: business logic in packages/core/, handlers in packages/functions/.
  • Use sst secret for API keys and credentials; they are encrypted and stage-specific.
  • Set up sst deploy --stage pr-${PR_NUMBER} in CI for preview environments on every pull request.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/sst-serverless-stack-framework-for-aws-mrx3xyr9/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/sst-serverless-stack-framework-for-aws-mrx3xyr9' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/sst-serverless-stack-framework-for-aws-mrx3xyr9/download' --output '.skill-downloads/sst-serverless-stack-framework-for-aws-mrx3xyr9/SKILL.md.part' && mv '.skill-downloads/sst-serverless-stack-framework-for-aws-mrx3xyr9/SKILL.md.part' '.skill-downloads/sst-serverless-stack-framework-for-aws-mrx3xyr9/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/sst-serverless-stack-framework-for-aws-mrx3xyr9/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills