Softwr

Cloud · head to head

Amazon EC2 vs AWS KMS

Amazon EC2 logo

Amazon EC2

Cloud

Resizable virtual server compute service on AWS

From
Free
Free plan
Yes
AWS KMS logo

AWS KMS

Cloud

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

From
$1/month
Free plan
No

The short version

  • Amazon EC2 is free; AWS KMS starts at $1/mo.
  • Only Amazon EC2 lists over 1,000 instance types; only AWS KMS lists customer managed keys.
  • Where Amazon EC2 falls short: cost forecasting is complex across purchase options and instance types.
  • 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.

How do Amazon EC2 and AWS KMS differ?

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

Attributes where Amazon EC2 and AWS KMS differ
AttributeAmazon EC2AWS KMS
Starting priceFree$1/month
Pricing modelUsage-basedPer key per month plus per 10,000 requests
Free tierYesNo
PlatformsWeb, Linux, Windows, macOSWeb

Not yet recorded: category for AWS KMS.

Which features does each one have?

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

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

What is each one used for?

Amazon EC2 is most often brought in for hosting web applications and APIs; AWS KMS for signing artefacts or JWTs with asymmetric keys that never leave the HSM. The jobs each tool is most often brought in to do.

Amazon EC2

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

AWS KMS

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

Where do Amazon EC2 and AWS KMS fall short?

Amazon EC2's most cited limit: cost forecasting is complex across purchase options and instance types. AWS KMS's: per-account request quotas can throttle high-volume workloads, forcing data key caching or architectural workarounds. 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

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

How much do Amazon EC2 and AWS KMS cost?

Amazon EC2 is free to use; AWS KMS starts at $1/mo. Plan by plan below, from each vendor's own pricing page.

Amazon EC2

Free

No published plan breakdown. See the Amazon EC2 review.

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

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 AWS KMS if

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

Questions people ask

Is Amazon EC2 or AWS KMS better?
It depends on the job. Amazon EC2 fits hosting web applications and APIs; AWS KMS fits meeting a compliance requirement for customer-controlled encryption keys on S3 and RDS. Amazon EC2 starts at Free and AWS KMS at $1/month.
Which is cheaper, Amazon EC2 or AWS KMS?
Amazon EC2 has a free tier; the other does not. Paid plans start at Free for Amazon EC2 and $1/month for AWS KMS.
Does Amazon EC2 or AWS KMS run on more platforms?
Amazon EC2 runs on Web, Linux, Windows, macOS. AWS KMS runs on Web.
Can I use Amazon EC2 for free?
Yes. Amazon EC2 has a free tier, so you can try it without paying. AWS KMS starts at $1/month.
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 AWS KMS is typically brought in for.
What can Amazon EC2 do that AWS KMS cannot?
Amazon EC2 covers Over 1,000 instance types, Intel, AMD and Arm (Graviton) processors, Per-second billing, Spot Instances and Savings Plans. AWS KMS covers Customer managed keys, Service integration, Automatic rotation, Custom key stores.

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
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.

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
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.

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
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.

Share

Related pages

Other head to heads