stacktape
v4.1.0
Published
PaaS 2.0 that deploys to your own AWS account.
Readme
Stacktape
Deploy your app to your own AWS account, without writing CloudFormation or hiring a DevOps team.
Stacktape is an open-source CLI (MIT). It reads your repository, proposes the AWS setup your app needs, shows what it will cost and deploys it with your own AWS credentials. You get one config file you own and can change by hand. No Stacktape account is needed to deploy.
Website · Docs · Upgrading from v3 · GitHub
Get started
Run this in your project directory:
npx stacktape initIt opens a wizard in your browser. You review the proposed resources and their estimated monthly AWS cost, then deploy. Prefer a native install? See the installers for macOS, Linux and Windows.
To add Stacktape to a project and use its config types:
npm install --save-dev stacktapeWhat a config looks like
An API container and a Postgres database that only the API can reach:
import {
defineConfig,
WebService,
JsBundleImagePackaging,
RelationalDatabase,
RdsEnginePostgres,
$Secret
} from 'stacktape';
export default defineConfig(() => {
const database = new RelationalDatabase({
engine: new RdsEnginePostgres({
version: '18',
primaryInstance: { instanceSize: 'db.t4g.micro' }
}),
credentials: {
masterUserPassword: $Secret('db-password')
},
accessibility: {
accessibilityMode: 'scoping-workloads-in-vpc'
}
});
const api = new WebService({
packaging: new JsBundleImagePackaging({
entryfilePath: './src/server.ts'
}),
resources: { cpu: 0.25, memory: 512 },
connectTo: [database]
});
return { resources: { api, database } };
});stacktape deploy --project my-api --stage dev --region eu-west-1Stacktape creates the networking, security groups, IAM roles, logs and the connection between the two, and builds your code into a container image. YAML works too, and TypeScript configs get type checking and autocomplete.
What you get
- 30+ resource types: containers on Fargate or EC2, Lambda functions, Next.js and other SSR sites, static websites, Postgres and MySQL, DynamoDB, Redis/Valkey, queues, buckets, CDNs, firewalls and more. Add native AWS resources or CDK constructs when you need something else.
- Builds handled for you: Node.js, Python, Java, Go, Ruby, PHP and .NET, or your own Dockerfile. Parallel builds with caching.
- Fast deploys: code-only changes skip the full infrastructure update, and release commands run database migrations inside your network before the rollout.
- Local development:
stacktape devruns your services locally, connected to the resources in your stack. - Works with coding agents: a built-in MCP server and a JSON mode for every command.
- No lock-in: everything runs in your AWS account, and AWS bills you directly.
The optional Stacktape Console adds push-to-deploy from GitHub, GitLab or Bitbucket, preview environments, logs and traces, error tracking, alerts, incidents, security scans and cost tracking for teams. See pricing.
Upgrading from v3
Stacktape 4 makes some breaking changes to the config and the CLI. Follow the upgrade guide before upgrading a project, and install the same version of the CLI and this package.
