Softwr

Identity and Access Management · head to head

Amazon Cognito vs Cloudflare Workers

Amazon Cognito logo

Amazon Cognito

Identity and Access Management

AWS customer identity service for sign-in, federation and access tokens, priced per active user

From
Free
Free plan
Yes
Cloudflare Workers logo

Cloudflare Workers

Identity and Access Management

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.015/mo and $5/mo.
  • Only Amazon Cognito lists user pools with sign-up and sign-in; only Cloudflare Workers lists edge execution.
  • Where Amazon Cognito falls short: SMS and email delivery are billed separately through SNS and SES.
  • Where Cloudflare Workers falls short: free has a 10 ms CPU cap.

How do Amazon Cognito and Cloudflare Workers differ?

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

Attributes where Amazon Cognito and Cloudflare Workers differ
AttributeAmazon CognitoCloudflare Workers
Pricing modelUsage-basedFree plan plus usage-based paid plan
PlatformsWebWeb, Linux, macOS, Windows

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

Not yet recorded: category for Cloudflare Workers.

Which features does each one have?

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

  • User pools with sign-up and sign-in
  • Social, SAML and OIDC federation
  • Passkeys and one-time passwords
  • OAuth 2.0 machine-to-machine tokens
  • Managed Login with UI editor
  • Adaptive authentication on Plus
  • Compromised credential detection
  • Multi-Region replication

Only in Cloudflare Workers

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

What is each one used for?

Amazon Cognito is most often brought in for customer sign-in for AWS-hosted apps; Cloudflare Workers for A low-latency API or middleware. The jobs each tool is most often brought in to do.

Amazon Cognito

  • Customer sign-in for AWS-hosted appsnot Cloudflare Workers
  • Federating enterprise SAML and OIDC identity providersnot Cloudflare Workers
  • Machine-to-machine tokens for microservicesnot Cloudflare Workers
  • Passwordless login with passkeysnot Cloudflare Workers
  • Authenticating AI agents on AWSnot Cloudflare Workers

Cloudflare Workers

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

Where do Amazon Cognito and Cloudflare Workers fall short?

Amazon Cognito's most cited limit: SMS and email delivery are billed separately through SNS and SES. 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 Cognito

  • SMS and email delivery are billed separately through SNS and SES
  • Plus tier has no free tier, and advanced security needs it or an add-on
  • Federated SAML and OIDC users have only 50 free MAUs
  • Best suited to teams already building on AWS

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 Cognito and Cloudflare Workers cost?

Amazon Cognito has a free plan, with paid plans from $0.015/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 Cognito

Free
  • Essentials$0.015
    • Managed Login
    • Passwordless sign-in
    • 10,000 free MAUs
  • Plus$0.02
    • Threat protection
    • Adaptive authentication
    • No free tier

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

  • You need user pools with sign-up and sign-in.
  • You want to start without paying.
  • You also want social, saml and oidc federation.

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 Cognito or Cloudflare Workers better?
It depends on the job. Amazon Cognito fits customer sign-in for AWS-hosted apps; Cloudflare Workers fits a low-latency API or middleware. Amazon Cognito starts at Free and Cloudflare Workers at Free.
Which is cheaper, Amazon Cognito or Cloudflare Workers?
Amazon Cognito starts at Free and Cloudflare Workers at Free.
Does Amazon Cognito or Cloudflare Workers run on more platforms?
Amazon Cognito runs on Web. Cloudflare Workers runs on Web, Linux, macOS, Windows.
Can I use Amazon Cognito for free?
Both have a free tier, so you can try either at no cost before committing.
What is Amazon Cognito best used for?
Amazon Cognito is most often used for customer sign-in for aws-hosted apps, federating enterprise saml and oidc identity providers, machine-to-machine tokens for microservices, passwordless login with passkeys. Of those, customer sign-in for aws-hosted apps and federating enterprise saml and oidc identity providers are not what Cloudflare Workers is typically brought in for.
What can Amazon Cognito do that Cloudflare Workers cannot?
Amazon Cognito covers User pools with sign-up and sign-in, Social, SAML and OIDC federation, Passkeys and one-time passwords, OAuth 2.0 machine-to-machine tokens. Cloudflare Workers covers Edge execution, Workers KV, Durable Objects, Hyperdrive.

Answered from the vendors’ own pages

Amazon Cognito: How much does Amazon Cognito cost?

Essentials is $0.015 per monthly active user and Plus is $0.020, after the free tier. Lite uses tiered pricing starting around $0.0055.

Source
Cloudflare Workers: Is Cloudflare Workers free?

Yes, with 100,000 requests a day.

Amazon Cognito: Is there a free tier?

Lite and Essentials include 10,000 free MAUs per account or AWS organisation. Plus has no free tier.

Source
Cloudflare Workers: What does Paid cost?

A $5 monthly minimum plus usage.

Amazon Cognito: What sign-in methods are supported?

Passwords, social login, SAML and OIDC federation, and passwordless sign-in with passkeys or SMS and email one-time passwords.

Source
Cloudflare Workers: Are static assets charged?

No, they are free and unlimited.

Amazon Cognito: Are SMS messages included?

No. SMS and email messages for verification and MFA are billed separately through Amazon SNS and Amazon SES.

Source
Share

Related pages

Other head to heads