SST: Full-Stack Serverless on AWS

VerifiedCaution

Framework for building and deploying full-stack serverless applications on AWS using Lambda, API Gateway, DynamoDB, and more.

Sby Skills Guide Bot
DevOpsIntermediate
7/28/2026
Claude CodeCursorWindsurfCodex
#sst#serverless#aws-lambda#infrastructure-as-code#full-stack

Recommended for

Automated summary

This skill supports building and deploying full-stack serverless applications on AWS with the SST framework, from typed infrastructure components to preview environments.

Strengths

  • Spans the whole workflow: infrastructure in sst.config.ts, type-safe resource linking, local development with sst dev, and stage-based deploys
  • Explains the `link` mechanism that auto-generates least-privilege IAM permissions and injects environment variables instead of hand-written policies
  • Gives concrete operational patterns: per-developer stages, per-PR preview environments with sst remove cleanup, and encrypted stage-specific secrets via sst secret
  • Enforces a clear code layout (thin handlers in packages/functions, business logic in packages/core) and access through Resource.Name

Limitations

  • Assumes AWS prerequisites are already configured (valid credentials, Node.js 18+) and does not cover debugging failed deploys or permission errors
  • Offers no complete sst.config.ts or handler code samples, only descriptions of the actions to take
  • Scoped to the SST/AWS ecosystem; alternative tools (CDK, Serverless Framework, Terraform) and migration paths are not discussed
When to use it

Use it when designing or deploying a serverless AWS application with SST, such as a Lambda + DynamoDB API or an SSR Next.js/Remix/Astro frontend.

When not to use it

Skip it when the project targets another cloud provider, runs on Kubernetes/containers, or when you need guidance for migrating existing AWS infrastructure.

Security analysis

Caution
Quality score90/100

The skill is a legitimate SST/AWS deployment guide and contains no obfuscation, exfiltration, curl-pipe-shell, or broad destructive commands. It is rated caution only because it directs use of powerful AWS deployment/teardown tooling and credentials for normal development workflows.

Findings
  • •Requires AWS credentials and invokes infrastructure-changing CLI commands such as `sst deploy` and `sst remove`, which can modify or tear down cloud resources if run against the wrong stage.
  • •Mentions `sst secret set KEY value`; handling depends on the agent avoiding exposure or committing of secret values.
How this analysis is made

Examples

REST API with DynamoDB
Create a REST API on AWS with DynamoDB using SST, link the table to my Lambda handlers, and get it running with sst dev.
Next.js preview environments per PR
Deploy my Next.js app on AWS with SST and set up a preview stage for every pull request using sst deploy --stage pr-${PR_NUMBER}, plus cleanup on PR close.
Stage-specific secrets
How do I store my Stripe API key with sst secret so it differs between the dev and prod stages, and read it inside a linked Lambda function?

name: sst description: >- Assists with building and deploying full-stack serverless applications on AWS using SST. Use when defining Lambda functions, API Gateway routes, DynamoDB tables, S3 buckets, or deploying Next.js/Remix/Astro with SSR on AWS. Trigger words: sst, serverless stack, sst dev, sst deploy, aws lambda, sst ion, resource linking. license: Apache-2.0 compatibility: "Requires Node.js 18+ and AWS credentials" metadata: author: terminal-skills version: "1.0.0" category: devops tags: ["sst", "serverless", "aws", "lambda", "full-stack"]

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-full-stack-serverless-on-aws-ms47vpf4/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-full-stack-serverless-on-aws-ms47vpf4' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/sst-full-stack-serverless-on-aws-ms47vpf4/download' --output '.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4/SKILL.md.part' && mv '.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4/SKILL.md.part' '.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4/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.

Environment declared by the author: Requires Node.js 18+ and AWS credentials

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

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4/SKILL.md' && test -s '.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/sst' && cp -R '.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4' '.claude/skills/sst'

Cursor
test -f '.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4/SKILL.md' && test -s '.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/sst' && cp -R '.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4' '.cursor/skills/sst'

Codex
test -f '.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4/SKILL.md' && test -s '.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/sst' && cp -R '.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4' '.agents/skills/sst'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/sst-full-stack-serverless-on-aws-ms47vpf4'

openskills read 'sst-full-stack-serverless-on-aws-ms47vpf4'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

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-full-stack-serverless-on-aws-ms47vpf4/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