Skip to content

Stacktape docs

Deploy your app to your own AWS account

Stacktape is an open-source CLI. It reads your project, writes the infrastructure config with you and deploys it with your own AWS credentials. A Console for teams is optional.

Run it in your project directory

Run it in your project directory

It opens a wizard in your browser. You review the setup and its estimated monthly AWS cost before usage charges, then deploy. No Stacktape account needed.

Where to start

  1. Deploy an existing app

    Run init in your app directory. The wizard proposes the AWS setup, estimates its monthly cost and deploys when you confirm.

    1. Start
    2. Analyze
    3. Review
    4. Deploy
  2. Start a new project

    Start from a working starter, such as Express with Postgres, Next.js or FastAPI.

    npx stacktape@latest init --starter-project
  3. Evaluate Stacktape for your team

    What a team lead or CTO wants to know before a pilot: what runs where, who owns production and how you would leave.

    Where it runs, data, access, stages, costs, support, lock-in

A config and what it creates

An API container and a Postgres database that only the API can reach. Init writes a file like this for you, and you can change it by hand. TypeScript configs get type checking and autocomplete.

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 } };
In your AWS accountstack my-api-dev
Internet
apiWebService
  • HTTP API Gateway

    The public URL

  • ECS on Fargate

    Your container, 0.25 vCPU and 512 MB, in the VPC

databaseRelationalDatabase
  • RDS Postgres 18

    db.t4g.micro, reachable only from api

  • STP_DATABASE_CONNECTION_STRING in the container environment
  • Security groups, an IAM role and CloudWatch logs
  • A generated database password, kept in AWS Secrets Manager

Deploy it

  1. Create the stack. The first deploy generates the database password.

    stacktape deploy --project my-api --stage dev --region eu-west-1

The open-source CLI and the optional Console

Stacktape CLI

Free and open source (MIT)

  • Deploy, update, roll back and delete stacks
  • Dev mode, scripts, bastion tunnels and container sessions
  • Logs, metrics, secrets and alarms in your AWS account
  • Runs on your AWS credentials, without a Stacktape account

Stacktape Console

Free up to $200 a month of managed AWS spend

  • Deploy history and costs for every stage
  • Error tracking, incidents and uptime checks
  • Git deployments and pull request previews
  • Team access and an audit log
  • Adds your existing stacks with stacktape connect, without a redeploy

Above $200 a month, the Flexible plan costs 19–25% of the managed AWS spend. AWS bills you for the resources directly. Plans and billing

Evaluating Stacktape for a team

Where it runs
AWS resources are created in your account, one CloudFormation stack per stage. MongoDB Atlas and Upstash resources, if you use them, live with those providers. Stacktape gets access to your AWS account only if you connect the Console.Using the CLI without an account
What leaves your account
Without the Console: anonymous CLI telemetry, which you can turn off, and the config init sends for its price estimate. With the Console: alarm state changes, uptime results, monthly cost breakdowns, security findings and errors. Application logs stay in CloudWatch; each recorded error sends a masked copy of its log line. AI features send data to the provider of your own key, and only when you use them.What each feature sends
How you would leave
Your stacks are plain CloudFormation in your account and keep running without Stacktape. stacktape synth writes the template to a file. To leave, you take over the stacks and replace the few parts the CLI did for you.Stop using Stacktape
Networking
Non-production stages in one account and region share a VPC, each with its own security groups. Production stages get their own. The first deploy decides, so choose before it. Databases accept internet connections with credentials by default: accessibilityMode limits who can connect, and forceDisablePublicIp removes the public IP.Shared network
CI/CD
Your pipeline runs stacktape deploy with AWS credentials, no Stacktape account needed. Init can write a GitHub Actions, GitLab CI or Bitbucket pipeline. With the Console, a push deploys and each pull request can get its own preview stage.CI/CD options
Observability
Logs, metrics and alarms stay in CloudWatch and work from the CLI. The Console adds error tracking, incidents and uptime checks.Observability
Costs
Init estimates the monthly cost from AWS list prices before the first deploy. Usage charges, such as requests and data transfer, come on top. The Console shows what each stage costs and alerts you on budgets.Managing costs
Access
The Console has roles per organization and project, two-factor sign-in and an audit log on every plan. SSO and SCIM come with the Flexible plan. AWS access covers a whole account: whoever can deploy to it can reach every stack in it, so keep production and each client in their own account.Team and access

Find your way around