AWS · Comparison
KMS vs CloudHSM
Should encryption keys live in AWS KMS, or in dedicated CloudHSM hardware that I control?
Decision summary
Use KMS by default: it is fully managed, integrates with almost every AWS service, logs every key use and costs little. Choose CloudHSM when a regulation or contract requires single-tenant HSMs under your exclusive control, or when applications need standard HSM interfaces such as PKCS #11. You can combine them: a KMS custom key store backed by CloudHSM lets AWS services use keys held in your own HSMs.
Best fit for each option
Side by side
| KMS | CloudHSM | |
|---|---|---|
| Best for | Managed keys for AWS services and apps | Dedicated HSMs you operate |
| Security | Multi-tenant FIPS-validated HSMs; AWS manages them; key policies control use | Single-tenant; only you manage users and keys |
| Operational complexity | Fully managed, automatic rotation available | You manage users, keys, clients and backups |
| Availability | Regional service; multi-Region keys for DR | Run HSMs in two or more zones per cluster |
| Cost | Per key per month plus per request | Per HSM per hour |
Scaling and topology
Limits and constraints
| Item | Value | Context | Source |
|---|---|---|---|
| KMS symmetric cryptographic requests per second (default) | 10,000 Can be raised with a quota request |
Source checked |
|
| CloudHSM HSMs per cluster | 28 Fixed limit |
Source checked |
Quotas and limits change. Check the linked source before designing around a number.
When to avoid each option
KMS
- Rules that demand single-tenant HSMs under your sole control.
CloudHSM
- Ordinary encryption needs, where you would take on HSM operations for no gain.
Example scenarios
| Situation | Choose | Why |
|---|---|---|
| Encrypt S3 and RDS data and audit who decrypts it. | KMS | Customer managed keys with CloudTrail logging. |
| A rule requires single-tenant hardware with keys that AWS cannot access. | CloudHSM | CloudHSM keys are under your exclusive control. |
Exam cues
- Managed, integrated, auditable: KMS. Dedicated, single-tenant, you control everything: CloudHSM.
- AWS services using keys in your own HSMs: a KMS custom key store.
Service pages
- AWS Key Management Service (AWS KMS) · Create and control encryption keys used by AWS services and your applications, with every use logged and governed by key policies.
- AWS CloudHSM · Dedicated, single-tenant hardware security modules in your VPC, where you alone control the keys and the HSM users.
Related
Courses and lessons
- AWS KMS and CloudHSM: encryption keys · AWS Solutions Architect – Associate (SAA-C03) · Members
Services, comparisons and patterns
- AWS Key Management Service (AWS KMS) · Service
- AWS CloudHSM · Service
- AWS Secrets Manager · Service
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services.