Softwr

Cloud · head to head

AWS CloudFormation vs Dokku

AWS CloudFormation logo

AWS CloudFormation

Cloud

Declarative infrastructure as code for AWS, free for AWS resources

From
Free
Free plan
Yes
Dokku logo

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 CloudFormation is free; Dokku starts at $849 one-off.
  • Only AWS CloudFormation lists stacks and templates; only Dokku lists git push deploy.
  • Where AWS CloudFormation falls short: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it.

How do AWS CloudFormation and Dokku differ?

AWS CloudFormation and Dokku differ on pricing model and platforms. Only the attributes on which AWS CloudFormation and Dokku actually diverge.

Attributes where AWS CloudFormation and Dokku differ
AttributeAWS CloudFormationDokku
Pricing modelNo charge for AWS resource types; extensions per handler operationOpen source, no licence fee
PlatformsWeb, Linux, macOS, WindowsLinux, Self-hosted, API

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: category for AWS CloudFormation.

Which features does each one have?

They share no listed features; 6 appear only for AWS CloudFormation 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 CloudFormation

  • Stacks and templates
  • Change sets
  • Drift detection
  • StackSets
  • Rollback
  • Registry extensions

Only in Dokku

  • Git push deploy
  • Heroku buildpacks
  • Datastore plugins
  • Automatic certificates
  • Zero downtime deploys
  • Pluggable schedulers

What is each one used for?

AWS CloudFormation is most often brought in for recreating identical dev, staging and production environments on AWS. The jobs each tool is most often brought in to do.

AWS CloudFormation

  • Recreating identical dev, staging and production environments on AWSnot Dokku
  • Deploying one baseline of security resources across many accounts with StackSetsnot Dokku
  • Serverless applications packaged with AWS SAMnot Dokku
  • Previewing and auditing infrastructure changes through change setsnot Dokku

Dokku

  • Running a dozen side projects and client applications on one virtual private server with Heroku style deploymentnot AWS CloudFormation
  • Moving off a managed platform when the monthly bill has grown faster than the traffic hasnot AWS CloudFormation
  • A consultancy that wants buildpack deployments without teaching every client team Kubernetesnot AWS CloudFormation
  • Keeping a legacy Procfile application alive on hardware you control after a managed platform deprecates its stacknot AWS CloudFormation

Where do AWS CloudFormation and Dokku fall short?

AWS CloudFormation's most cited limit: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS CloudFormation

  • It only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it
  • Raw templates are verbose and hard to reuse, which is why many teams add CDK on top
  • A failed update can leave a stack in a stuck state such as UPDATE_ROLLBACK_FAILED that needs manual intervention
  • New AWS features sometimes arrive in CloudFormation after the console and API, so you wait or script around the gap
  • Deleting a stack deletes its resources, so a mistaken delete of a stack with data needs DeletionPolicy discipline

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 CloudFormation and Dokku cost?

AWS CloudFormation 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 CloudFormation

Free
  • AWS resource typesFree
    • No additional charge for using CloudFormation with AWS resources
    • You pay for the resources the stack creates
  • Third-party extensionsOn request
    • $0.0009 per handler operation, first 1,000 per month free
    • $0.00008 per second of handler duration beyond 30 seconds

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 CloudFormation if

  • You need stacks and templates.
  • You want to start without paying.
  • You work on Web, Linux, macOS, Windows.
  • You also want change sets.

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 CloudFormation or Dokku better?
It depends on the job. AWS CloudFormation fits recreating identical dev, staging and production environments on AWS; Dokku fits running a dozen side projects and client applications on one virtual private server with Heroku style deployment. AWS CloudFormation starts at Free and Dokku at Free.
Which is cheaper, AWS CloudFormation or Dokku?
AWS CloudFormation starts at Free and Dokku at Free.
Does AWS CloudFormation or Dokku run on more platforms?
AWS CloudFormation runs on Web, Linux, macOS, Windows. Dokku runs on Linux, Self-hosted, API.
Can I use AWS CloudFormation for free?
Both have a free tier, so you can try either at no cost before committing.
What is AWS CloudFormation best used for?
AWS CloudFormation is most often used for recreating identical dev, staging and production environments on aws, deploying one baseline of security resources across many accounts with stacksets, serverless applications packaged with aws sam, previewing and auditing infrastructure changes through change sets. Of those, recreating identical dev, staging and production environments on aws and deploying one baseline of security resources across many accounts with stacksets are not what Dokku is typically brought in for.
What can AWS CloudFormation do that Dokku cannot?
AWS CloudFormation covers Stacks and templates, Change sets, Drift detection, StackSets. Dokku covers Git push deploy, Heroku buildpacks, Datastore plugins, Automatic certificates.

Answered from the vendors’ own pages

AWS CloudFormation: Does CloudFormation cost money?

Not for AWS resource types. You pay for the resources it creates; third-party extensions are billed at $0.0009 per handler operation after 1,000 free.

Dokku: 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 CloudFormation: CloudFormation or Terraform?

CloudFormation is AWS-only with state managed by AWS; Terraform spans many providers and keeps its own state.

Dokku: 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 CloudFormation: How does CDK relate?

CDK lets you write infrastructure in a programming language and synthesises CloudFormation templates.

Dokku: 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.

Dokku: 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.

Share

Related pages

Other head to heads