Softwr

Software · head to head

Amazon VPC vs Cloudflare Workers

Amazon VPC logo

Amazon VPC

Software

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

From
Free
Free plan
Yes
Cloudflare Workers logo

Cloudflare Workers

Software

Serverless compute on Cloudflare's network, free to start and $5 a month minimum on the paid plan

From
Free
Free plan
Yes

The short version

  • Free plans on both; paid from $0.005/mo and $5/mo.
  • Only Amazon VPC lists subnets and routing; only Cloudflare Workers lists edge execution.
  • 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.
  • Where Cloudflare Workers falls short: free has a 10 ms CPU cap.

How do Amazon VPC and Cloudflare Workers differ?

Amazon VPC and Cloudflare Workers differ on pricing model and platforms. Only the attributes on which Amazon VPC and Cloudflare Workers actually diverge.

Attributes where Amazon VPC and Cloudflare Workers differ
AttributeAmazon VPCCloudflare Workers
Pricing modelFree VPC, metered NAT gateways, addresses and add-onsFree plan plus usage-based paid plan
PlatformsWebWeb, Linux, macOS, Windows

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

Which features does each one have?

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

  • Edge execution
  • Workers KV
  • Durable Objects
  • Hyperdrive
  • Queues
  • Spend limits

What is each one used for?

Amazon VPC is most often brought in for isolating production, staging and development workloads in separate networks; Cloudflare Workers for A low-latency API or middleware. The jobs each tool is most often brought in to do.

Amazon VPC

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

Cloudflare Workers

  • A low-latency API or middlewarenot Amazon VPC
  • A full-stack app with static assetsnot Amazon VPC
  • A cron-driven data jobnot Amazon VPC
  • Rewriting or protecting traffic at the edgenot Amazon VPC

Where do Amazon VPC and Cloudflare Workers 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. Cloudflare Workers's: free has a 10 ms CPU cap. 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 Workers

  • Free has a 10 ms CPU cap
  • The runtime is not full Node.js, so some libraries do not run
  • Costs scale with CPU time, so heavy compute surprises
  • Durable Objects and other products are billed separately
  • Logs and Logpush follow separate observability pricing from December 2026

How much do Amazon VPC and Cloudflare Workers cost?

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

Free
  • Workers FreeFree
    • 100,000 requests per day
    • 10 ms CPU per invocation
  • Workers Paid$5/mo
    • 10 million requests included, then $0.30 per million
    • 30 million CPU ms included, then $0.02 per million

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

  • You need edge execution.
  • You want to start without paying.
  • You work on Web, Linux, macOS, Windows.
  • You also want workers kv.

Questions people ask

Is Amazon VPC or Cloudflare Workers better?
It depends on the job. Amazon VPC fits isolating production, staging and development workloads in separate networks; Cloudflare Workers fits a low-latency API or middleware. Amazon VPC starts at Free and Cloudflare Workers at Free.
Which is cheaper, Amazon VPC or Cloudflare Workers?
Amazon VPC starts at Free and Cloudflare Workers at Free.
Does Amazon VPC or Cloudflare Workers run on more platforms?
Amazon VPC runs on Web. Cloudflare Workers runs on Web, Linux, macOS, Windows.
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 Workers is typically brought in for.
What can Amazon VPC do that Cloudflare Workers cannot?
Amazon VPC covers Subnets and routing, Security groups and NACLs, NAT gateways, PrivateLink endpoints. Cloudflare Workers covers Edge execution, Workers KV, Durable Objects, Hyperdrive.

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 Workers: Is Cloudflare Workers free?

Yes, with 100,000 requests a day.

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 Workers: What does Paid cost?

A $5 monthly minimum plus usage.

Amazon VPC: Are public IPv4 addresses charged?

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

Cloudflare Workers: Are static assets charged?

No, they are free and unlimited.

Share

Related pages

Other head to heads