Softwr

File Storage · head to head

Amazon VPC vs Cloudflare R2

Amazon VPC logo

Amazon VPC

File Storage

The private network layer for AWS, free to create with paid NAT, endpoints and addresses

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

  • Free plans on both; paid from $0.005/mo and $0.015/mo.
  • Only Amazon VPC lists subnets and routing; only Cloudflare R2 lists zero egress billing.
  • Where Amazon VPC falls short: every public IPv4 address costs about $3.60 a month, including idle ones, so unused elastic IPs quietly add cost.

How do Amazon VPC and Cloudflare R2 differ?

Amazon VPC and Cloudflare R2 differ on pricing model and platforms (Web against Web, API). Only the attributes on which Amazon VPC and Cloudflare R2 actually diverge.

Attributes where Amazon VPC and Cloudflare R2 differ
AttributeAmazon VPCCloudflare R2
Pricing modelFree VPC, metered NAT gateways, addresses and add-onsPer gigabyte stored per month
PlatformsWebWeb, API

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

Not yet recorded: category for Amazon VPC.

Which features does each one have?

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

  • Subnets and routing
  • Security groups and NACLs
  • NAT gateways
  • PrivateLink endpoints
  • Flow Logs and Traffic Mirroring
  • IPAM

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 VPC is most often brought in for isolating production, staging and development workloads in separate networks. The jobs each tool is most often brought in to do.

Amazon VPC

  • Isolating production, staging and development workloads in separate networksnot Cloudflare R2
  • Giving private subnets outbound access through a NAT gateway while blocking inbound trafficnot Cloudflare R2
  • Reaching S3 and other AWS services over private endpoints to avoid NAT data chargesnot Cloudflare R2
  • Capturing and mirroring traffic for intrusion detectionnot Cloudflare R2

Cloudflare R2

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

Where do Amazon VPC and Cloudflare R2 fall short?

Amazon VPC's most cited limit: every public IPv4 address costs about $3.60 a month, including idle ones, so unused elastic IPs quietly add cost. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon VPC

  • NAT gateways charge $0.045 per hour and $0.045 per GB, so private workloads pulling large data volumes from the internet can generate a large bill with no obvious source
  • Every public IPv4 address costs about $3.60 a month, including idle ones, so unused elastic IPs quietly add cost
  • Cross-Availability Zone traffic is billed per GB, so designs that spread chatty services across zones pay for the resilience in data transfer fees
  • Networking is regional and per account, so connecting many VPCs needs Transit Gateway or peering, each with its own pricing and limits
  • Security groups, NACLs and route tables are easy to misconfigure, and there is no built-in policy checking beyond tools such as Reachability Analyzer, which is billed per analysis

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 VPC and Cloudflare R2 cost?

Amazon VPC has a free plan, with paid plans from $0.005/mo; 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 VPC

Free
  • VPC, subnets and security groupsFree
    • No charge to create a VPC, subnets, route tables, security groups or network ACLs
  • NAT Gateway$0.045/hour
    • $0.045 per hour per gateway
    • $0.045 per GB processed
    • Regional NAT Gateway is $0.045 per hour per Availability Zone
  • Public IPv4 address$0.005/hour
    • $0.005 per hour, in use or idle
    • Traffic mirroring $0.015 per session hour
    • IPAM Advanced Tier $0.00027 per active IP address hour

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

  • You need subnets and routing.
  • You want to start without paying.
  • You also want security groups and nacls.

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 VPC or Cloudflare R2 better?
It depends on the job. Amazon VPC fits isolating production, staging and development workloads in separate networks; Cloudflare R2 fits serving a large media or asset library to the public where transfer out, not storage, is the dominant cost. Amazon VPC starts at Free and Cloudflare R2 at Free.
Which is cheaper, Amazon VPC or Cloudflare R2?
Amazon VPC starts at Free and Cloudflare R2 at Free.
Does Amazon VPC or Cloudflare R2 run on more platforms?
Amazon VPC runs on Web. Cloudflare R2 runs on Web, API.
Can I use Amazon VPC for free?
Both have a free tier, so you can try either at no cost before committing.
What is Amazon VPC best used for?
Amazon VPC is most often used for isolating production, staging and development workloads in separate networks, giving private subnets outbound access through a nat gateway while blocking inbound traffic, reaching s3 and other aws services over private endpoints to avoid nat data charges, capturing and mirroring traffic for intrusion detection. Of those, isolating production, staging and development workloads in separate networks and giving private subnets outbound access through a nat gateway while blocking inbound traffic are not what Cloudflare R2 is typically brought in for.
What can Amazon VPC do that Cloudflare R2 cannot?
Amazon VPC covers Subnets and routing, Security groups and NACLs, NAT gateways, PrivateLink endpoints. Cloudflare R2 covers Zero egress billing, S3 API compatibility, Worker binding, Jurisdictional restriction.

Answered from the vendors’ own pages

Amazon VPC: Is Amazon VPC free?

Creating a VPC, subnets, route tables and security groups is free. NAT gateways, public IPv4 addresses, traffic mirroring and PrivateLink endpoints are charged.

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 VPC: How much does a NAT gateway cost?

$0.045 per hour in US East plus $0.045 per GB processed, per the AWS pricing page, before standard data transfer charges.

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 VPC: Are public IPv4 addresses charged?

Yes. $0.005 per hour per public IPv4 address, whether in use or idle.

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