Softwr

Cloud · head to head

Amazon EC2 vs Cloudflare R2

Amazon EC2 logo

Amazon EC2

Cloud

Resizable virtual server compute service on AWS

From
Free
Free plan
Yes
Cloudflare R2 logo

Cloudflare R2

File Storage

S3-compatible object storage that charges nothing for egress to the internet

From
Free
Free plan
Yes

The short version

  • Amazon EC2 is free; Cloudflare R2 starts at $0.015/mo.
  • Only Amazon EC2 lists over 1,000 instance types; only Cloudflare R2 lists S3 API compatibility.
  • Where Amazon EC2 falls short: cost forecasting is complex across purchase options and instance types.

How do Amazon EC2 and Cloudflare R2 differ?

Amazon EC2 and Cloudflare R2 differ on pricing model, platforms and category (Cloud against File Storage). Only the attributes on which Amazon EC2 and Cloudflare R2 actually diverge.

Attributes where Amazon EC2 and Cloudflare R2 differ
AttributeAmazon EC2Cloudflare R2
Pricing modelUsage-basedPer gigabyte stored per month
PlatformsWeb, Linux, Windows, macOSWeb, API
CategoryCloudFile Storage

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

Which features does each one have?

They share no listed features; 7 appear only for Amazon EC2 and 6 only for Cloudflare R2. 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 Amazon EC2

  • Over 1,000 instance types
  • Intel, AMD and Arm (Graviton) processors
  • Per-second billing
  • Spot Instances and Savings Plans
  • Dedicated Hosts
  • EC2 Mac instances
  • Nitro System isolation

Only in Cloudflare R2

  • Zero egress billing
  • S3 API compatibility
  • Worker binding
  • Jurisdictional restriction
  • Infrequent Access tier
  • Custom domain serving

What is each one used for?

Amazon EC2 is most often brought in for hosting web applications and APIs. The jobs each tool is most often brought in to do.

Amazon EC2

  • Hosting web applications and APIsnot Cloudflare R2
  • Running GPU and machine learning workloadsnot Cloudflare R2
  • Building and signing macOS appsnot Cloudflare R2
  • Bursting capacity with Spot Instancesnot Cloudflare R2

Cloudflare R2

  • Serving a large media or asset library to the public where transfer out, not storage, is the dominant costnot Amazon EC2
  • Hosting a container or artefact registry that thousands of CI runners pull from every daynot Amazon EC2
  • Distributing model weights or open datasets that are downloaded far more often than they are updatednot Amazon EC2
  • Moving off S3 specifically to stop paying data transfer charges on a read heavy bucketnot Amazon EC2

Where do Amazon EC2 and Cloudflare R2 fall short?

Amazon EC2's most cited limit: cost forecasting is complex across purchase options and instance types. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon EC2

  • Cost forecasting is complex across purchase options and instance types
  • Spot instances carry no SLA and can be reclaimed on two minutes' notice
  • Instance-store data is lost when an instance stops or terminates
  • You manage OS patching, scaling and security configuration

Cloudflare R2

  • There is no archive tier below Infrequent Access, so genuinely cold data costs roughly ten to fifteen times what it would cost in a deep archive class and there is nowhere cheaper to lifecycle it to
  • Class A operations are billed at 4.50 USD per million, so a workload that writes millions of small objects can spend more on operations than on the storage those objects occupy
  • Infrequent Access carries both a retrieval fee and a thirty day minimum storage duration, so data that is deleted or re-read sooner ends up more expensive than if it had stayed on Standard
  • You choose a location hint rather than a region, so you cannot prove to an auditor which datacentre holds an object unless you use a jurisdiction restricted bucket, and jurisdictions are limited
  • Support level follows your Cloudflare account plan rather than the storage spend, so a team on a low tier account gets ticket support with no storage specific SLA, and an R2 incident is a Cloudflare incident you cannot fail over from because the free egress only exists inside Cloudflare

How much do Amazon EC2 and Cloudflare R2 cost?

Amazon EC2 is free to use; Cloudflare R2 has a free plan, with paid plans from $0.015/mo. Plan by plan below, from each vendor's own pricing page.

Amazon EC2

Free

No published plan breakdown. See the Amazon EC2 review.

Cloudflare R2

Free
  • Free tierFree
    • 10 GB stored per month
    • 1 million Class A operations
    • 10 million Class B operations
  • Standard$0.015/mo
    • Per gigabyte stored per month
    • 4.50 USD per million Class A operations
    • 0.36 USD per million Class B operations
  • Infrequent Access$0.01/mo
    • Per gigabyte stored per month
    • Per gigabyte data retrieval fee
    • Thirty day minimum storage duration

Which should you pick?

Choose Amazon EC2 if

  • You need over 1,000 instance types.
  • You want to start without paying.
  • You work on Web, Linux, Windows, macOS.
  • You also want intel, amd and arm (graviton) processors.

Choose Cloudflare R2 if

  • You need zero egress billing.
  • You want to start without paying.
  • You work on Web, API.
  • You also want s3 api compatibility.

Questions people ask

Is Amazon EC2 or Cloudflare R2 better?
It depends on the job. Amazon EC2 fits hosting web applications and APIs; Cloudflare R2 fits serving a large media or asset library to the public where transfer out, not storage, is the dominant cost. Amazon EC2 starts at Free and Cloudflare R2 at Free.
Which is cheaper, Amazon EC2 or Cloudflare R2?
Amazon EC2 starts at Free and Cloudflare R2 at Free.
Does Amazon EC2 or Cloudflare R2 run on more platforms?
Amazon EC2 runs on Web, Linux, Windows, macOS. Cloudflare R2 runs on Web, API.
Can I use Amazon EC2 for free?
Both have a free tier, so you can try either at no cost before committing.
What is Amazon EC2 best used for?
Amazon EC2 is most often used for hosting web applications and apis, running gpu and machine learning workloads, building and signing macos apps, bursting capacity with spot instances. Of those, hosting web applications and apis and running gpu and machine learning workloads are not what Cloudflare R2 is typically brought in for.
What can Amazon EC2 do that Cloudflare R2 cannot?
Amazon EC2 covers Over 1,000 instance types, Intel, AMD and Arm (Graviton) processors, Per-second billing, Spot Instances and Savings Plans. Cloudflare R2 covers Zero egress billing, S3 API compatibility, Worker binding, Jurisdictional restriction.

Answered from the vendors’ own pages

Amazon EC2: How is Amazon EC2 billed?

Usage is billed in one-second increments with a minimum charge of 60 seconds, across all purchase options and Regions.

Source
Cloudflare R2: Is egress really free, with no hidden transfer charge?

Yes for data served out of R2 to the internet. You still pay per operation for the requests that serve it, and if you pull data into R2 from another provider you pay that provider the egress on the way in.

Amazon EC2: When did EC2 launch?

A limited public beta started on 25 August 2006, and the beta label was dropped on 23 October 2008 with the addition of an SLA.

Source
Cloudflare R2: How does the total cost compare with S3 for a public download bucket?

Storage is more expensive per terabyte than S3 Infrequent Access, but S3 charges roughly 90 USD per terabyte served. Any bucket that serves more than about a fifth of its stored volume each month is cheaper on R2.

Amazon EC2: How much can Spot Instances save?

AWS says Spot Instances save up to 90 percent versus On-Demand, and Savings Plans up to 72 percent. Wikipedia notes Spot can be reclaimed with two minutes' notice.

Source
Cloudflare R2: Can I use R2 without using the rest of Cloudflare?

Yes, it works through the plain S3 API from anywhere. You lose the Worker binding and the free CDN caching in front of it, which is where a lot of the practical benefit sits.

Cloudflare R2: Does R2 have a cold archive class like Glacier?

No. Infrequent Access is the coldest tier, at two thirds of the Standard rate plus retrieval fees.

Share

Related pages

Other head to heads