Softwr

Databases · head to head

AWS KMS vs CockroachDB

AWS KMS logo

AWS KMS

Databases

Managed encryption key service used by most AWS storage and database services

From
$1/month
Free plan
No
CockroachDB logo

CockroachDB

Databases

The cloud-native distributed SQL database

From
Free
Free plan
Yes

The short version

  • CockroachDB is a cloud-native distributed SQL database.
  • CockroachDB has a free plan, then $0.057/mo; AWS KMS starts at $1/mo.
  • Only AWS KMS lists customer managed keys; only CockroachDB lists distributed SQL.
  • Where AWS KMS falls short: every decrypt call is a billed request, and workloads that call KMS for each record can accumulate millions of billable requests.
  • Where CockroachDB falls short: basic and Standard tiers limited to AWS and GCP (select regions only).

How do AWS KMS and CockroachDB differ?

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

Attributes where AWS KMS and CockroachDB differ
AttributeAWS KMSCockroachDB
Starting price$1/monthFree
Pricing modelPer key per month plus per 10,000 requestsFreemium
Free tierNoYes
PlatformsWebAWS, GCP, Azure

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

Which features does each one have?

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

  • Customer managed keys
  • Service integration
  • Automatic rotation
  • Custom key stores
  • CloudTrail logging
  • Envelope encryption

Only in CockroachDB

  • Distributed SQL
  • Automatic Sharding
  • Multi-region Replication
  • Geo-partitioning
  • ACID Transactions
  • Horizontal Scaling
  • Survivability
  • PostgreSQL Compatibility

What is each one used for?

AWS KMS is most often brought in for signing artefacts or JWTs with asymmetric keys that never leave the HSM; CockroachDB for distributed SQL database for scalable applications. The jobs each tool is most often brought in to do.

AWS KMS

  • Meeting a compliance requirement for customer-controlled encryption keys on S3 and RDSnot CockroachDB
  • Signing artefacts or JWTs with asymmetric keys that never leave the HSMnot CockroachDB
  • Encrypting application secrets and data keys with envelope encryptionnot CockroachDB
  • Separating key administrators from data users with key policies and audit logsnot CockroachDB

CockroachDB

  • Distributed SQL database for scalable applicationsnot AWS KMS
  • Multi-region deployment and failovernot AWS KMS

Where do AWS KMS and CockroachDB fall short?

AWS KMS's most cited limit: per-account request quotas can throttle high-volume workloads, forcing data key caching or architectural workarounds. CockroachDB's: basic and Standard tiers limited to AWS and GCP (select regions only). Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS KMS

  • Cost grows with key count, so organisations that create one key per tenant or per object class pay $1 per month for each one, including the keys they forgot
  • Every decrypt call is a billed request, and workloads that call KMS for each record can accumulate millions of billable requests
  • Per-account request quotas can throttle high-volume workloads, forcing data key caching or architectural workarounds
  • Keys are tied to AWS, so using the same keys with other clouds or on-premises systems needs external key stores or a separate tool such as HashiCorp Vault
  • Key policies and grants interact with IAM in non-obvious ways, and a misconfigured policy can lock administrators out of a key

CockroachDB

  • Basic and Standard tiers limited to AWS and GCP (select regions only)
  • Azure support restricted to Advanced tier only
  • Basic tier limited to 50 million RUs and 10 GiB storage per month
  • Advanced tier starts at $0.60/hour for 4 vCPUs minimum
  • 3 TiB maximum storage on Basic and Standard tiers, 10 TiB per node on Advanced

How much do AWS KMS and CockroachDB cost?

AWS KMS starts at $1/mo; CockroachDB has a free plan, with paid plans from $0.057/mo. Plan by plan below, from each vendor's own pricing page.

AWS KMS

$1/month
  • Customer managed key$1/mo
    • $1 per key per month, prorated hourly
    • Same price for symmetric, asymmetric, HMAC and multi-Region keys
    • First and second rotation each add $1 per month
  • RequestsOn request
    • $0.03 per 10,000 requests
    • 20,000 free requests per month
    • $0.15 per 10,000 for most asymmetric requests, $12.00 per 10,000 for RSA GenerateDataKeyPair

CockroachDB

Free
  • Standard$0.057/vcpu-hour
  • Mission Critical$0.162/vcpu-hour

Which should you pick?

Choose AWS KMS if

  • You need customer managed keys.
  • You also want service integration.

Choose CockroachDB if

  • You need distributed sql.
  • You want to start without paying.
  • You work on AWS, GCP, Azure.
  • You also want automatic sharding.

Questions people ask

Is AWS KMS or CockroachDB better?
It depends on the job. AWS KMS fits meeting a compliance requirement for customer-controlled encryption keys on S3 and RDS; CockroachDB fits distributed SQL database for scalable applications. AWS KMS starts at $1/month and CockroachDB at Free.
Which is cheaper, AWS KMS or CockroachDB?
CockroachDB has a free tier; the other does not. Paid plans start at $1/month for AWS KMS and Free for CockroachDB.
Does AWS KMS or CockroachDB run on more platforms?
AWS KMS runs on Web. CockroachDB runs on AWS, GCP, Azure.
Can I use CockroachDB for free?
Yes. CockroachDB has a free tier, so you can try it without paying. AWS KMS starts at $1/month.
What is AWS KMS best used for?
AWS KMS is most often used for meeting a compliance requirement for customer-controlled encryption keys on s3 and rds, signing artefacts or jwts with asymmetric keys that never leave the hsm, encrypting application secrets and data keys with envelope encryption, separating key administrators from data users with key policies and audit logs. Of those, meeting a compliance requirement for customer-controlled encryption keys on s3 and rds and signing artefacts or jwts with asymmetric keys that never leave the hsm are not what CockroachDB is typically brought in for.
What can AWS KMS do that CockroachDB cannot?
AWS KMS covers Customer managed keys, Service integration, Automatic rotation, Custom key stores. CockroachDB covers Distributed SQL, Automatic Sharding, Multi-region Replication, Geo-partitioning.

Answered from the vendors’ own pages

AWS KMS: How much does AWS KMS cost?

$1 per month per customer managed key, $0.03 per 10,000 requests, and a free tier of 20,000 requests per month, per the AWS pricing page.

CockroachDB: What does the free Basic tier include?

The Basic tier is free and includes 50 million RUs and 10 GiB storage per month, with a maximum compute of 30K RU/sec. No credit card is required to start.

Source
AWS KMS: Are AWS managed keys free?

Keys that AWS services create on your behalf (AWS managed keys) have no monthly fee; usage charges for requests may still apply as shown on the pricing page.

CockroachDB: How much do the paid tiers cost?

Standard tier starts at $0.18 per hour for 2 vCPUs, and Advanced tier starts at $0.60 per hour for 4 vCPUs. Both tiers support additional resources with higher costs for increased compute and storage.

Source
AWS KMS: What is the difference between KMS and CloudHSM?

KMS is a multi-tenant key service integrated with AWS services. CloudHSM gives you dedicated single-tenant HSMs, and in the AWS example a two-HSM cluster costs $1.60 per HSM per hour.

CockroachDB: What are the storage limits for each tier?

Basic plan supports up to 3 TiB storage, Standard tier up to 3 TiB, and Advanced tier up to 10 TiB per node with unlimited total storage.

Source
CockroachDB: Can I get trial credits before paying?

Yes, new users can try CockroachDB free with $400 in credits. The Basic and Standard plans do not require a credit card to start.

Source
CockroachDB: Do legacy contracts have different pricing?

Customers with annual or multi-year contracts entered before December 1, 2024 can view legacy pricing terms on a separate page, which apply until their contract renewal date.

Source
Share

Related pages

Other head to heads