Five ways to ship a TypeScript backend to AWS without SST, ranked, with the same Postgres database in each and a verdict on when to pick which.

The best SST alternative for a TypeScript backend in 2026 is Encore, which brings infrastructure from code: the application declares its Postgres databases, Pub/Sub topics, buckets, cron jobs and secrets, encore run starts the databases and topics locally, and Encore provisions them in your own AWS or GCP account with no sst.config.ts, state backend or separate deploy program. If you want to keep the engine SST runs on, pick Pulumi. If you came from SST v2 and liked constructs, pick AWS CDK. For Lambda-only apps, Serverless Framework still covers the basics.
SST made deploying TypeScript to AWS far nicer than raw CloudFormation, with components, resource linking and live Lambda development. It is still maintained, as SST v4 moved to the Pulumi AWS v7 provider in February 2026 and the GitHub releases show v4.17.2 in October.
Teams that look elsewhere do so because every resource lives in a config file next to the app rather than in it, Pulumi state sits underneath, and a major upgrade means a one-way sst refresh of every stage.
Encore brings infrastructure from code, which takes SST's idea of keeping infrastructure next to the app one step further: the resources are typed objects in the code that uses them, with no second file. Encore reads those declarations with static analysis, runs them locally, and provisions them in your own AWS or GCP account on deploy, without CloudFormation, Pulumi or Terraform underneath, so there is no synth or plan/apply step to wait on.

Here is an orders service in TypeScript with a database, a topic for fulfillment, a receipts bucket and a nightly cleanup job:
import { api, APIError } from "encore.dev/api";
import { getAuthData } from "~encore/auth";
import { SQLDatabase } from "encore.dev/storage/sqldb";
import { Topic, Subscription } from "encore.dev/pubsub";
import { Bucket } from "encore.dev/storage/objects";
import { CronJob } from "encore.dev/cron";
// RDS Postgres on AWS, Cloud SQL on GCP, a local Postgres under encore run.
const db = new SQLDatabase("orders", { migrations: "./migrations" });
// S3 on AWS, Cloud Storage on GCP.
const receipts = new Bucket("receipts", { versioned: false });
interface OrderPlaced {
orderId: number;
totalCents: number;
}
// SNS and SQS on AWS, Pub/Sub on GCP.
export const orderPlaced = new Topic<OrderPlaced>("order-placed", {
deliveryGuarantee: "at-least-once",
});
// Writing the same key twice overwrites the same receipt, so redelivery is safe.
const _ = new Subscription(orderPlaced, "write-receipt", {
handler: async ({ orderId, totalCents }) => {
await receipts.upload(
`${orderId}.json`,
Buffer.from(JSON.stringify({ orderId, totalCents })),
);
},
});
export const createOrder = api(
{ expose: true, auth: true, method: "POST", path: "/orders" },
async (req: { totalCents: number }): Promise<{ id: number }> => {
if (!Number.isInteger(req.totalCents) || req.totalCents < 0) {
throw APIError.invalidArgument("totalCents must be a non-negative integer");
}
const { userID } = getAuthData()!;
const row = await db.queryRow<{ id: number }>`
INSERT INTO orders (user_id, total_cents) VALUES (${userID}, ${req.totalCents})
RETURNING id`;
await orderPlaced.publish({ orderId: row!.id, totalCents: req.totalCents });
return { id: row!.id };
},
);
export const cleanupExpired = api({}, async (): Promise<void> => {
await db.exec`DELETE FROM orders WHERE status = 'expired'`;
});
// Encore platform Managed: the schedule needs no extra cloud infrastructure.
const _cleanup = new CronJob("cleanup-expired", {
title: "Delete expired orders",
schedule: "0 2 * * *",
endpoint: cleanupExpired,
});
createOrder requires a signed-in caller. The auth handler runs first, and getAuthData() supplies the user id stored on the order:
// auth/auth.ts
import { createHmac, timingSafeEqual } from "node:crypto";
import { APIError, Gateway, Header } from "encore.dev/api";
import { authHandler } from "encore.dev/auth";
import { secret } from "encore.dev/config";
const tokenKey = secret("AuthTokenKey");
interface AuthParams {
authorization: Header<"Authorization">;
}
interface AuthData {
userID: string;
}
export const auth = authHandler<AuthParams, AuthData>(async ({ authorization }) => {
const [userID, exp, sig] = (authorization ?? "").replace(/^Bearer /, "").split(".");
if (!userID || !exp || !sig || Number(exp) < Date.now() / 1000) {
throw APIError.unauthenticated("invalid token");
}
const want = createHmac("sha256", tokenKey()).update(`${userID}.${exp}`).digest("hex");
if (sig.length !== want.length || !timingSafeEqual(Buffer.from(sig), Buffer.from(want))) {
throw APIError.unauthenticated("invalid token");
}
return { userID };
});
export const gateway = new Gateway({ authHandler: auth });
If SST's live development was the part you liked, encore run is the closest match: it starts the app with a local Postgres and a local Pub/Sub broker, and the local development dashboard shows a trace for each request. Cron jobs do not run locally or in preview environments, so you call cleanupExpired by hand to test it. For a coding agent this matters more than the syntax, as the agent adds the topic or bucket in the same change as the handler and runs it straight away, with no config file or console step in between.
On deploy, Encore creates the VPC, RDS, SNS and SQS, S3 and the compute (Fargate or EKS on AWS, Cloud Run or GKE on GCP), and Encore provisions an IAM role for the service, or a service account on GCP. Secrets set with encore secret set are stored in AWS Secrets Manager in your account on AWS, and their values never live in the repository. Instance sizes, networking and backups sit in infrastructure configuration, outside the application code, and every pull request can get a preview environment hosted by Encore.
Encore runs backends, not frontends, so it does not replace SST's Nextjs or StaticSite components; keep the frontend on its current host or on S3 and CloudFront. Resources Encore does not model stay in your existing IaC, and the Encore Terraform provider lets Terraform read Encore-managed resources. Existing RDS databases and S3 buckets can be connected instead of recreated.
Josef Sima, Engineering Director at Groupon, on the Groupon case study: "Encore is our foundation for all new development. What used to take days or weeks between developers and infra teams now takes minutes."
Run in your terminal to get started locally.
Pulumi is the smallest move for SST v3 and v4 users, as SST runs on Pulumi and keeps its state in Pulumi's format. You write infrastructure in TypeScript, Python, Go, C# or Java and Pulumi tracks it in a state backend, but you lose SST's components and linking, so the code sits closer to raw AWS resources:
import * as aws from "@pulumi/aws";
import * as pulumi from "@pulumi/pulumi";
const config = new pulumi.Config();
const db = new aws.rds.Instance("orders", {
engine: "postgres",
engineVersion: "17",
instanceClass: "db.t4g.micro",
allocatedStorage: 20,
dbName: "orders",
username: "app",
password: config.requireSecret("dbPassword"),
// Keep a final snapshot for anything that is not a disposable sandbox.
skipFinalSnapshot: false,
finalSnapshotIdentifier: "orders-final",
deletionProtection: true,
});
Pulumi is still a separate program with its own state and pulumi up, so an infrastructure change remains a separate step from the feature that needs it. There is also no local equivalent of the resources, which means the first real test of a new queue is a deploy to a cloud stage. More detail in Pulumi alternatives.
AWS CDK is the familiar choice for SST v2 users, since SST v2 was built on CDK. You define resources in TypeScript and CDK synthesizes them into CloudFormation templates:
import { Stack, StackProps } from "aws-cdk-lib";
import { Construct } from "constructs";
import * as rds from "aws-cdk-lib/aws-rds";
import * as ec2 from "aws-cdk-lib/aws-ec2";
export class OrdersStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
const vpc = new ec2.Vpc(this, "Vpc");
new rds.DatabaseInstance(this, "Orders", {
engine: rds.DatabaseInstanceEngine.postgres({
version: rds.PostgresEngineVersion.VER_17,
}),
vpc,
instanceType: ec2.InstanceType.of(ec2.InstanceClass.T4G, ec2.InstanceSize.MICRO),
databaseName: "orders",
});
}
}
CDK is AWS only, and CloudFormation brings its stack resource limits and slow rollbacks. Live Lambda development and the SST Console do not carry over, so local testing falls back to unit tests and a deployed dev stack.
Terraform has the largest provider ecosystem, and OpenTofu is the MPL-licensed fork with the same HCL. For an app team coming from SST, it is a step back in developer experience, with HCL instead of TypeScript, a state file to host and lock, and a plan/apply cycle for every change:
variable "db_password" {
type = string
sensitive = true
}
resource "aws_db_instance" "orders" {
identifier = "orders"
engine = "postgres"
engine_version = "17"
instance_class = "db.t4g.micro"
allocated_storage = 20
db_name = "orders"
username = "app"
password = var.db_password
skip_final_snapshot = false
final_snapshot_identifier = "orders-final"
}
It makes sense when a platform team already runs Terraform for the whole organization and the app team hands infrastructure requests to them. See Terraform alternatives for the app-team view.
Serverless Framework, the original Lambda deploy tool, still fits when your SST app is a set of Lambda functions behind API Gateway, with a serverless.yml like this:
service: orders-api
provider:
name: aws
runtime: nodejs22.x
functions:
createOrder:
handler: src/orders.create
events:
- httpApi:
path: /orders
method: post
It is built around Lambda, so containers, long-running workers and databases are outside what it provisions, and you will add them with CloudFormation resources in the same file or with a second tool. Check the current license terms for the v4 CLI before you standardize on it.
encore run.Moving off SST does not have to happen in one release. The next backend service can run on Encore in the same AWS account while the SST app keeps serving traffic, and the quick start shows the same database, topic and bucket declared in TypeScript and running under encore run.
For backends on AWS or GCP, Encore. You declare Postgres databases, Pub/Sub topics, buckets, cron jobs and secrets in application code, encore run starts the databases and topics locally, and Encore provisions them in your own cloud account with no sst.config.ts or state backend. Pulumi is the pick if you want to keep the engine SST runs on, and AWS CDK if you came from SST v2 constructs.
Yes. SST v4 shipped in February 2026 and moved its components to version 7 of the Pulumi AWS provider, and releases have continued since, with v4.17.2 in October 2026. In [November 2025 the team said on GitHub](https://github.com/anomalyco/sst/issues/6215) that SST was not going away and that a community team would help with the backlog.
SST v3 and v4 run on Pulumi with Terraform providers underneath, and keep their state in Pulumi's format. SST v2 ran on AWS CDK and CloudFormation. Pulumi is therefore the smallest move from SST v3 or v4, and AWS CDK the most familiar one from SST v2.
Yes. Leave the SST app deployed, build the next backend service with the new tool in the same AWS account, and move existing resources across when there is a reason to.
Deploy to your cloud on AWS and Google Cloud
without managing infrastructure
Encore lets developers and agents define application infrastructure directly in code, then automatically provisions it from local development to production in your AWS or GCP account.