Softwr

Cloud · head to head

AWS CloudFormation vs Heroku

AWS CloudFormation logo

AWS CloudFormation

Cloud

Declarative infrastructure as code for AWS, free for AWS resources

From
Free
Free plan
Yes
Heroku logo

Heroku

Cloud

Cloud Application Platform

From
$5/month
Free plan
No

The short version

  • Heroku is a cloud platform as a service.
  • AWS CloudFormation is free; Heroku starts at $5/mo.
  • Only AWS CloudFormation lists stacks and templates; only Heroku lists git-based deployment.
  • Where AWS CloudFormation falls short: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it.
  • Where Heroku falls short: there is no free dyno tier; the cheapest Eco dyno is $5 per month.

How do AWS CloudFormation and Heroku differ?

AWS CloudFormation and Heroku differ on starting price (Free against $5/month), pricing model and free tier (Yes against No). Only the attributes on which AWS CloudFormation and Heroku actually diverge.

Attributes where AWS CloudFormation and Heroku differ
AttributeAWS CloudFormationHeroku
Starting priceFree$5/month
Pricing modelNo charge for AWS resource types; extensions per handler operationSubscription
Free tierYesNo
PlatformsWeb, Linux, macOS, WindowsWeb, API, Workers

Not yet recorded: category for AWS CloudFormation, founded for AWS CloudFormation.

Which features does each one have?

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

  • Git-based deployment
  • Buildpacks
  • Dynos (containers)
  • Add-ons marketplace
  • Postgres database
  • Environment variables
  • Logging
  • API

What is each one used for?

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

AWS CloudFormation

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

Heroku

  • Application hostingnot AWS CloudFormation
  • Database as a servicenot AWS CloudFormation
  • CI/CD pipelinesnot AWS CloudFormation
  • API deploymentnot AWS CloudFormation

Where do AWS CloudFormation and Heroku fall short?

AWS CloudFormation's most cited limit: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it. Heroku's: there is no free dyno tier; the cheapest Eco dyno is $5 per month. 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

Heroku

  • There is no free dyno tier; the cheapest Eco dyno is $5 per month
  • Eco dynos sleep after 30 minutes of inactivity, are restricted to personal accounts and allow only 2 process types
  • Free SSL and 10 process types start at the Basic dyno at $7 per month
  • Private and Shield dyno types require a Private Space, which is billed on top of the dynos
  • Private Space dynos start at $250 per month for Private-M and $500 per month for Private-L
  • Dyno prices are per dyno per month, so an app with several process types multiplies the bill

How much do AWS CloudFormation and Heroku cost?

AWS CloudFormation is free to use; Heroku starts at $5/mo. 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

Heroku

$5/month
  • Eco Dyno$5/mo
    • 0.5 GB RAM
    • Git/Docker deploy
    • Custom domains
  • Basic Dyno$7/mo
    • 0.5 GB RAM
    • Always-on
    • Free SSL
  • Standard-1X Dyno$25/mo
    • 0.5 GB RAM
    • Horizontal scaling
    • App metrics
  • Standard-2X Dyno$50/mo
    • 1 GB RAM
    • Horizontal scaling
    • App metrics

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

  • You need git-based deployment.
  • You work on Web, API, Workers.
  • You also want buildpacks.

Questions people ask

Is AWS CloudFormation or Heroku better?
It depends on the job. AWS CloudFormation fits recreating identical dev, staging and production environments on AWS; Heroku fits application hosting. AWS CloudFormation starts at Free and Heroku at $5/month.
Which is cheaper, AWS CloudFormation or Heroku?
AWS CloudFormation has a free tier; the other does not. Paid plans start at Free for AWS CloudFormation and $5/month for Heroku.
Does AWS CloudFormation or Heroku run on more platforms?
AWS CloudFormation runs on Web, Linux, macOS, Windows. Heroku runs on Web, API, Workers.
Can I use AWS CloudFormation for free?
Yes. AWS CloudFormation has a free tier, so you can try it without paying. Heroku starts at $5/month.
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 Heroku is typically brought in for.
What can AWS CloudFormation do that Heroku cannot?
AWS CloudFormation covers Stacks and templates, Change sets, Drift detection, StackSets. Heroku covers Git-based deployment, Buildpacks, Dynos (containers), Add-ons marketplace.

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.

Heroku: How much does Heroku cost?

Heroku dyno pricing starts at $5 per month USD for the Eco tier (with 30-minute inactivity sleep), $7 per month for Basic (always-on), and scales up to $1,500 per month for Performance-2XL with 126 GB RAM.

Source
AWS CloudFormation: CloudFormation or Terraform?

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

Heroku: What is the cheapest always-on Heroku plan?

The Basic Dyno at $7 per month USD is Heroku's cheapest always-on container option. It provides 0.5 GB RAM, free SSL, and support for 10 process types.

Source
AWS CloudFormation: How does CDK relate?

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

Heroku: How is Heroku Postgres priced?

Heroku Postgres Essential tier (shared resources) starts at $5-$20 per month for 1-32 GB disk. Standard tier (dedicated) ranges $50-$12,000 per month. Premium, Private, Shield, and Advanced tiers offer higher performance at corresponding prices.

Source
Share

Related pages

Other head to heads