Softwr

Cloud · head to head

Amazon EC2 vs AWS Secrets Manager

Amazon EC2 logo

Amazon EC2

Cloud

Resizable virtual server compute service on AWS

From
Free
Free plan
Yes
AWS Secrets Manager logo

AWS Secrets Manager

Cloud

Managed store for database credentials and API keys with automatic rotation

From
$0.4/month
Free plan
No

The short version

  • Amazon EC2 is free; AWS Secrets Manager starts at $0.4/mo.
  • Only Amazon EC2 lists over 1,000 instance types; only AWS Secrets Manager lists automatic rotation.
  • Where Amazon EC2 falls short: cost forecasting is complex across purchase options and instance types.
  • Where AWS Secrets Manager falls short: replica secrets are billed as full secrets, which doubles or triples the cost of multi-Region storage.

How do Amazon EC2 and AWS Secrets Manager differ?

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

Attributes where Amazon EC2 and AWS Secrets Manager differ
AttributeAmazon EC2AWS Secrets Manager
Starting priceFree$0.4/month
Pricing modelUsage-basedPer secret per month plus per 10,000 API calls
Free tierYesNo
PlatformsWeb, Linux, Windows, macOSWeb

Not yet recorded: category for AWS Secrets Manager.

Which features does each one have?

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

  • Automatic rotation
  • KMS encryption
  • Cross-Region replication
  • Fine-grained access
  • Audit trail
  • Versioning

What is each one used for?

Amazon EC2 is most often brought in for hosting web applications and APIs; AWS Secrets Manager for rotating RDS or Aurora database passwords on a schedule without code changes. The jobs each tool is most often brought in to do.

Amazon EC2

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

AWS Secrets Manager

  • Rotating RDS or Aurora database passwords on a schedule without code changesnot Amazon EC2
  • Giving ECS tasks and Lambda functions credentials at runtime instead of in environment filesnot Amazon EC2
  • Replicating secrets to a second Region for disaster recoverynot Amazon EC2
  • Centralising third-party API keys with audit logs for compliancenot Amazon EC2

Where do Amazon EC2 and AWS Secrets Manager fall short?

Amazon EC2's most cited limit: cost forecasting is complex across purchase options and instance types. AWS Secrets Manager's: replica secrets are billed as full secrets, which doubles or triples the cost of multi-Region storage. 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 Secrets Manager

  • The $0.40 per secret fee applies to every secret including rarely used ones, so organisations with thousands of per-service secrets see a steady monthly charge
  • Replica secrets are billed as full secrets, which doubles or triples the cost of multi-Region storage
  • Rotation for anything other than the supported AWS databases means writing and maintaining your own Lambda function
  • It stores static secrets only; unlike HashiCorp Vault it does not issue short-lived dynamic credentials for many targets
  • It is AWS-only, so workloads on other clouds or on-premises must call AWS APIs across the network, tying their secret access to AWS availability

How much do Amazon EC2 and AWS Secrets Manager cost?

Amazon EC2 is free to use; AWS Secrets Manager starts at $0.4/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 Secrets Manager

$0.4/month
  • Secrets$0.4/mo
    • $0.40 per secret per month, prorated hourly
    • Each replica secret is billed as a separate secret
  • API callsOn request
    • $0.05 per 10,000 API calls
    • Rotation, retrieval and management calls all count

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 Secrets Manager if

  • You need automatic rotation.
  • You also want kms encryption.

Questions people ask

Is Amazon EC2 or AWS Secrets Manager better?
It depends on the job. Amazon EC2 fits hosting web applications and APIs; AWS Secrets Manager fits rotating RDS or Aurora database passwords on a schedule without code changes. Amazon EC2 starts at Free and AWS Secrets Manager at $0.4/month.
Which is cheaper, Amazon EC2 or AWS Secrets Manager?
Amazon EC2 has a free tier; the other does not. Paid plans start at Free for Amazon EC2 and $0.4/month for AWS Secrets Manager.
Does Amazon EC2 or AWS Secrets Manager run on more platforms?
Amazon EC2 runs on Web, Linux, Windows, macOS. AWS Secrets Manager 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 Secrets Manager starts at $0.4/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 Secrets Manager is typically brought in for.
What can Amazon EC2 do that AWS Secrets Manager cannot?
Amazon EC2 covers Over 1,000 instance types, Intel, AMD and Arm (Graviton) processors, Per-second billing, Spot Instances and Savings Plans. AWS Secrets Manager covers Automatic rotation, KMS encryption, Cross-Region replication, Fine-grained access.

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 Secrets Manager: How much does Secrets Manager cost?

$0.40 per secret per month and $0.05 per 10,000 API calls, per the AWS pricing page. A replica in another Region is billed as another secret.

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 Secrets Manager: Is Secrets Manager cheaper than Parameter Store?

Parameter Store standard parameters carry no charge, so for static values that do not need rotation it is cheaper. Secrets Manager adds rotation and replication.

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 Secrets Manager: Does it rotate secrets automatically?

Yes. It has managed rotation for supported AWS databases and uses Lambda functions for other secret types.

Share

Related pages

Other head to heads