Developer Tools · head to head
AWS Serverless Application Model (AWS SAM) vs Dokku

AWS Serverless Application Model (AWS SAM)
Developer Tools
Open-source framework and CLI for building serverless apps on AWS
- From
- Free
- Free plan
- Yes

Dokku
Cloud
Single-server platform that accepts a git push and runs Heroku buildpacks on Docker
- From
- Free
- Free plan
- Yes
The short version
- AWS Serverless Application Model (AWS SAM) is free; Dokku starts at $849 one-off.
- Only AWS Serverless Application Model (AWS SAM) lists SAM connectors for IAM permissions; only Dokku lists git push deploy.
- Where AWS Serverless Application Model (AWS SAM) falls short: targets AWS only, so templates are not portable to other cloud providers.
How do AWS Serverless Application Model (AWS SAM) and Dokku differ?
AWS Serverless Application Model (AWS SAM) and Dokku differ on pricing model, platforms and category (Developer Tools against Cloud). Only the attributes on which AWS Serverless Application Model (AWS SAM) and Dokku actually diverge.
| Attribute | AWS Serverless Application Model (AWS SAM) | Dokku |
|---|---|---|
| Pricing model | Open-source | Open source, no licence fee |
| Platforms | Windows, macOS, Linux | Linux, Self-hosted, API |
| Category | Developer Tools | Cloud |
Identical on both: starting price (Free), free tier (Yes).
Which features does each one have?
They share no listed features; 7 appear only for AWS Serverless Application Model (AWS SAM) and 6 only for Dokku. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in AWS Serverless Application Model (AWS SAM)
- SAM template shorthand for CloudFormation
- SAM CLI project scaffolding with sam init
- Local testing of Lambda functions and API endpoints
- sam sync for syncing local changes to the cloud
- SAM connectors for IAM permissions
- Terraform project debugging support
- CI/CD pipeline support
Only in Dokku
- Git push deploy
- Heroku buildpacks
- Datastore plugins
- Automatic certificates
- Zero downtime deploys
- Pluggable schedulers
What is each one used for?
AWS Serverless Application Model (AWS SAM) is most often brought in for defining Lambda and API Gateway applications as code. The jobs each tool is most often brought in to do.
AWS Serverless Application Model (AWS SAM)
- Defining Lambda and API Gateway applications as codenot Dokku
- Testing Lambda functions locally before deploymentnot Dokku
- Building CI/CD pipelines for serverless appsnot Dokku
- Converting console-created resources into templatesnot Dokku
Dokku
- Running a dozen side projects and client applications on one virtual private server with Heroku style deploymentnot AWS Serverless Application Model (AWS SAM)
- Moving off a managed platform when the monthly bill has grown faster than the traffic hasnot AWS Serverless Application Model (AWS SAM)
- A consultancy that wants buildpack deployments without teaching every client team Kubernetesnot AWS Serverless Application Model (AWS SAM)
- Keeping a legacy Procfile application alive on hardware you control after a managed platform deprecates its stacknot AWS Serverless Application Model (AWS SAM)
Where do AWS Serverless Application Model (AWS SAM) and Dokku fall short?
AWS Serverless Application Model (AWS SAM)'s most cited limit: targets AWS only, so templates are not portable to other cloud providers. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
AWS Serverless Application Model (AWS SAM)
- Targets AWS only, so templates are not portable to other cloud providers
- Local testing of functions depends on Docker being installed and running
- Requires an AWS account, the AWS CLI and configured credentials before first use
- Declarative templates, so complex logic needs CloudFormation or the AWS CDK instead
- Does not cover non-serverless infrastructure on its own, which falls back to CloudFormation
Dokku
- One maintainer accounts for nearly all human commit activity and the project records roughly 10,500 US dollars of annual income on Open Collective, which is not enough to fund a maintainer, so continuity rests on one person continuing to volunteer
- Dokku Pro asks 849 US dollars for a lifetime licence from a project with no disclosed legal entity behind the promise and no published refund terms, while the product is still described as in development at early bird pricing
- Dokku is single-server by design, and the k3s scheduler that provides multi-node support is missing log retrieval, process inspection and content-based health checks, with a post-run hook the documentation says does not consistently fire
- Supported operating systems are limited to Ubuntu 22.04 or 24.04 and Debian 11 or later, so organisations standardised on Red Hat, Rocky or Alma Linux cannot run it on their approved base image
- Backups are separate commands per datastore plugin that you schedule yourself, with no unified snapshot, no point-in-time recovery and no tested restore path, so verifying that a restore works is entirely your responsibility
How much do AWS Serverless Application Model (AWS SAM) and Dokku cost?
AWS Serverless Application Model (AWS SAM) is free to use; Dokku has a free plan, with paid plans from $849 one-off. Plan by plan below, from each vendor's own pricing page.
AWS Serverless Application Model (AWS SAM)
FreeNo published plan breakdown. See the AWS Serverless Application Model (AWS SAM) review.
Dokku
Free- DokkuFree
- MIT licensed, no usage limits
- Command line and SSH only
- All datastore and certificate plugins
- Dokku Pro$849 one-off
- Lifetime licence with free upgrades and no subscription
- Covers 1 production and 2 pre-production servers
- Web dashboard and JSON REST API
Which should you pick?
Choose AWS Serverless Application Model (AWS SAM) if
- You need sam template shorthand for cloudformation.
- You want to start without paying.
- You work on Windows, macOS, Linux.
- You also want sam cli project scaffolding with sam init.
Choose Dokku if
- You need git push deploy.
- You want to start without paying.
- You work on Linux, Self-hosted, API.
- You also want heroku buildpacks.
Questions people ask
- Is AWS Serverless Application Model (AWS SAM) or Dokku better?
- It depends on the job. AWS Serverless Application Model (AWS SAM) fits defining Lambda and API Gateway applications as code; Dokku fits running a dozen side projects and client applications on one virtual private server with Heroku style deployment. AWS Serverless Application Model (AWS SAM) starts at Free and Dokku at Free.
- Which is cheaper, AWS Serverless Application Model (AWS SAM) or Dokku?
- AWS Serverless Application Model (AWS SAM) starts at Free and Dokku at Free.
- Does AWS Serverless Application Model (AWS SAM) or Dokku run on more platforms?
- AWS Serverless Application Model (AWS SAM) runs on Windows, macOS, Linux. Dokku runs on Linux, Self-hosted, API.
- Can I use AWS Serverless Application Model (AWS SAM) for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is AWS Serverless Application Model (AWS SAM) best used for?
- AWS Serverless Application Model (AWS SAM) is most often used for defining lambda and api gateway applications as code, testing lambda functions locally before deployment, building ci/cd pipelines for serverless apps, converting console-created resources into templates. Of those, defining lambda and api gateway applications as code and testing lambda functions locally before deployment are not what Dokku is typically brought in for.
- What can AWS Serverless Application Model (AWS SAM) do that Dokku cannot?
- AWS Serverless Application Model (AWS SAM) covers SAM template shorthand for CloudFormation, SAM CLI project scaffolding with sam init, Local testing of Lambda functions and API endpoints, sam sync for syncing local changes to the cloud. Dokku covers Git push deploy, Heroku buildpacks, Datastore plugins, Automatic certificates.
Answered from the vendors’ own pages
AWS Serverless Application Model (AWS SAM): What is AWS SAM?
AWS SAM is an open-source framework for building serverless applications with infrastructure as code. It consists of a template syntax that extends CloudFormation and a command-line tool.
SourceDokku: Is Dokku still maintained?
Yes. Version 0.38.27 shipped in August 2026 with roughly six releases in the preceding two months. The caveat is that one maintainer writes nearly all of it.
AWS Serverless Application Model (AWS SAM): Which operating systems does the SAM CLI support?
AWS publishes installers for Linux on x86_64 and arm64, macOS on Intel and Apple silicon, and a 64-bit Windows MSI. macOS versions older than 13.x are not supported.
SourceDokku: What does Dokku Pro give me over the free edition?
A web dashboard, a JSON REST API, git push over HTTPS, browser log tailing, team management and email support from the maintainers. It costs 849 US dollars once for one production and two pre-production servers.
AWS Serverless Application Model (AWS SAM): What licence does AWS SAM use?
The serverless-application-model repository on GitHub is licensed under Apache-2.0.
SourceDokku: Can Dokku run across multiple servers?
Only through the k3s or Nomad schedulers. The k3s path is missing several commands and health check types, and the older Kubernetes scheduler is deprecated and no longer developed.
AWS Serverless Application Model (AWS SAM): How does SAM differ from the AWS CDK?
The documentation says to use SAM instead of the CDK if you prefer a declarative approach to describing infrastructure rather than a programmatic one. The two can also be combined, using the SAM CLI's local testing with CDK applications.
SourceDokku: Will my Heroku application run on it unchanged?
Usually. Dokku runs the same buildpacks and reads a Procfile, so the application layer normally moves across. Add-ons, scaling behaviour and backups are the parts you have to rebuild.
Related pages
More on AWS Serverless Application Model (AWS SAM)
Other head to heads
- AWS Serverless Application Model (AWS SAM) vs Terraform
- AWS Serverless Application Model (AWS SAM) vs LocalStack
- AWS Serverless Application Model (AWS SAM) vs Spacelift
- AWS Serverless Application Model (AWS SAM) vs Atlantis
- AWS Serverless Application Model (AWS SAM) vs Backstage
- AWS Serverless Application Model (AWS SAM) vs PDAL
- AWS Serverless Application Model (AWS SAM) vs Claude Code
- AWS Serverless Application Model (AWS SAM) vs Harness
- AWS Serverless Application Model (AWS SAM) vs Losant
- AWS Serverless Application Model (AWS SAM) vs PartyKit
- AWS Serverless Application Model (AWS SAM) vs Webpack
- AWS Serverless Application Model (AWS SAM) vs Garden
- AWS Serverless Application Model (AWS SAM) vs Pieces for Developers
- AWS Serverless Application Model (AWS SAM) vs Portainer
- AWS Serverless Application Model (AWS SAM) vs RubyMine
- AWS Serverless Application Model (AWS SAM) vs Sourcegraph
- AWS Serverless Application Model (AWS SAM) vs Sourcetree
- AWS Serverless Application Model (AWS SAM) vs Anvil
- AWS Serverless Application Model (AWS SAM) vs Coolify
- AWS Serverless Application Model (AWS SAM) vs CapRover
- AWS Serverless Application Model (AWS SAM) vs Fly.io
- AWS Serverless Application Model (AWS SAM) vs Render
- AWS Serverless Application Model (AWS SAM) vs Heroku
- AWS Serverless Application Model (AWS SAM) vs Qovery
- AWS Serverless Application Model (AWS SAM) vs Porter
- AWS Serverless Application Model (AWS SAM) vs Railway
- AWS Serverless Application Model (AWS SAM) vs Northflank
- AWS Serverless Application Model (AWS SAM) vs Red Hat OpenShift
- AWS Serverless Application Model (AWS SAM) vs Google Cloud Run
- AWS Serverless Application Model (AWS SAM) vs Akamai
- AWS Serverless Application Model (AWS SAM) vs Amazon S3
- AWS Serverless Application Model (AWS SAM) vs Cilium
- AWS Serverless Application Model (AWS SAM) vs Encore
- AWS Serverless Application Model (AWS SAM) vs Podman
- AWS Serverless Application Model (AWS SAM) vs Longhorn
- AWS Serverless Application Model (AWS SAM) vs minikube
- Dokku vs Terraform
- Dokku vs LocalStack
- Dokku vs Spacelift
- Dokku vs Atlantis
- Dokku vs Backstage
- Dokku vs PDAL
- Dokku vs Claude Code
- Dokku vs Harness
- Dokku vs Losant
- Dokku vs PartyKit
- Dokku vs Webpack
- Dokku vs Garden
- Dokku vs Pieces for Developers
- Dokku vs Portainer
- Dokku vs RubyMine
- Dokku vs Sourcegraph
- Dokku vs Sourcetree
- Dokku vs Anvil
- Dokku vs Coolify
- Dokku vs CapRover
- Dokku vs Fly.io
- Dokku vs Render
- Dokku vs Heroku
- Dokku vs Qovery
- Dokku vs Porter
- Dokku vs Railway
- Dokku vs Northflank
- Dokku vs Red Hat OpenShift
- Dokku vs Google Cloud Run
- Dokku vs Akamai
- Dokku vs Amazon S3
- Dokku vs Cilium
- Dokku vs Encore
- Dokku vs Podman
- Dokku vs Longhorn
- Dokku vs minikube
