Softwr

Software · head to head

Amazon ECS vs AWS KMS

Amazon ECS logo

Amazon ECS

Software

AWS managed container orchestration, free to use, billed for Fargate or EC2 compute

From
On request
Free plan
No
AWS KMS logo

AWS KMS

Software

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

From
$1/month
Free plan
No

The short version

  • Amazon ECS is a fully managed container orchestration service on AWS.
  • AWS KMS starts at $1/mo; Amazon ECS prices on request.
  • Only Amazon ECS lists fargate serverless containers; only AWS KMS lists service integration.
  • Where Amazon ECS falls short: runs only on AWS, with no portability to other clouds.
  • 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 ECS and AWS KMS differ?

Amazon ECS and AWS KMS differ on starting price (On request against $1/month) and pricing model. Only the attributes on which Amazon ECS and AWS KMS actually diverge.

Attributes where Amazon ECS and AWS KMS differ
AttributeAmazon ECSAWS KMS
Starting priceOn request$1/month
Pricing modelUsage-basedPer key per month plus per 10,000 requests

Identical on both: free tier (No), platforms (Web).

Which features does each one have?

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

  • Fargate serverless containers
  • EC2 launch type
  • ECS Anywhere for on-premises and edge
  • ECS Managed Instances
  • IAM-based access control
  • Automated patching
  • Encryption in transit and at rest
  • Spot capacity support

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 ECS is most often brought in for running containerised web services on AWS; 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 ECS

  • Running containerised web services on AWSnot AWS KMS
  • Batch jobs on Spot capacitynot AWS KMS
  • Serverless containers without managing serversnot AWS KMS
  • Hybrid workloads using ECS Anywherenot AWS KMS

AWS KMS

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

Where do Amazon ECS and AWS KMS fall short?

Amazon ECS's most cited limit: runs only on AWS, with no portability to other clouds. 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 ECS

  • Runs only on AWS, with no portability to other clouds
  • Task definitions and APIs are AWS-specific, unlike Kubernetes
  • Costs combine ECS-adjacent services such as EC2, load balancers and IPv4
  • Smaller ecosystem of third-party tooling than Kubernetes

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 ECS and AWS KMS cost?

AWS KMS starts at $1/mo. Plan by plan below, from each vendor's own pricing page.

Amazon ECS

On request

No published plan breakdown. See the Amazon ECS 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 ECS if

  • You need fargate serverless containers.
  • You also want ec2 launch type.

Choose AWS KMS if

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

Questions people ask

Is Amazon ECS or AWS KMS better?
It depends on the job. Amazon ECS fits running containerised web services on AWS; AWS KMS fits meeting a compliance requirement for customer-controlled encryption keys on S3 and RDS. Amazon ECS starts at On request and AWS KMS at $1/month.
Which is cheaper, Amazon ECS or AWS KMS?
Amazon ECS starts at On request and AWS KMS at $1/month.
Does Amazon ECS or AWS KMS run on more platforms?
Both run on Web, so platform support will not decide this one for you.
What is Amazon ECS best used for?
Amazon ECS is most often used for running containerised web services on aws, batch jobs on spot capacity, serverless containers without managing servers, hybrid workloads using ecs anywhere. Of those, running containerised web services on aws and batch jobs on spot capacity are not what AWS KMS is typically brought in for.
What can Amazon ECS do that AWS KMS cannot?
Amazon ECS covers Fargate serverless containers, EC2 launch type, ECS Anywhere for on-premises and edge, ECS Managed Instances. AWS KMS covers Customer managed keys, Service integration, Automatic rotation, Custom key stores.

Answered from the vendors’ own pages

Amazon ECS: Does ECS cost extra?

No. There is no additional charge for Amazon ECS orchestration; you pay for the compute and resources your containers use.

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 ECS: Can ECS run outside AWS?

ECS Anywhere runs containers on registered on-premises instances at $0.01025 per instance per hour.

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 ECS: What compute options does ECS offer?

AWS Fargate, Amazon EC2 and ECS Anywhere, plus ECS Managed Instances.

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