AWS · Security, Identity, and Compliance
AWS CloudHSM
Dedicated, single-tenant hardware security modules in your VPC, where you alone control the keys and the HSM users.
What it is and what problem it solves
AWS CloudHSM gives you hardware security modules (HSMs) in a cluster inside your VPC. Unlike KMS, the HSMs are single-tenant and you manage the users and keys on them: AWS cannot see or use your keys. You use standard interfaces such as PKCS #11, JCE and Microsoft CNG, and can connect a cluster to KMS as a custom key store so AWS services use keys that live in your HSMs.
When to use it
- Regulations or contracts require single-tenant HSMs under your exclusive control.
- Applications use PKCS #11, JCE or CNG directly, such as an SSL/TLS offload or a certificate authority.
- You need to manage the full key lifecycle yourself, including how keys are backed up.
When to avoid it
- Most encryption needs: KMS is simpler, cheaper, fully managed and integrated with AWS services.
- Small teams without HSM expertise, since you manage users, keys and client software.
Scaling model and bottlenecks
Add HSMs to a cluster for more throughput and resilience; the client spreads requests across them.
Limits and quotas
| Item | Value | Context | Source |
|---|---|---|---|
| HSMs per cluster | 28 Fixed limit |
Source checked |
|
| Clusters per Region per account | 4 Can be raised with a quota request |
Source checked |
|
| HSMs per Region per account | 6 Can be raised with a quota request |
Source checked |
Quotas and limits change. Check the linked source before designing around a number.
Cost model
What you pay for
An hourly fee for each HSM until it is deleted. There is no upfront cost.
Where it is cost-efficient
Workloads that need dedicated HSMs anyway and use them heavily.
Where costs grow
Clusters with several HSMs left running in non-production accounts.
Cost controls and common surprises
Use KMS unless dedicated HSMs are required; size clusters to the throughput and resilience you need.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
FIPS-validated hardware, single-tenant; AWS manages the hardware but has no access to your keys or HSM users.
What you configure
Manage HSM users and credentials, back up and protect keys, restrict network access with security groups, and run at least two HSMs.
Logging and monitoring
HSM audit logs go to CloudWatch Logs; CloudTrail records management API calls.
Related security services
KMS (custom key store), ACM Private CA, EC2-based applications.
Shared responsibility
AWS provides and maintains the hardware. You own users, keys and how they are used; losing credentials can mean losing keys.
Availability, backup and failure behavior
Run HSMs in at least two Availability Zones in a cluster; keys are synchronised across the cluster and backups are taken automatically.
Common service combinations
KMS custom key stores, Oracle and SQL Server transparent data encryption, web server TLS offload.
Business application examples
- A payments company keeps signing keys in HSMs it alone controls, to meet card-industry rules.
- A regulated bank connects CloudHSM to KMS so S3 and EBS use keys stored in its own HSMs.
Exam cues and common confusions
- Single-tenant, you control the keys, FIPS-validated hardware: CloudHSM.
- Managed, integrated with AWS services, cheaper: KMS.
- AWS services using keys you hold in your own HSMs: KMS custom key store backed by CloudHSM.
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 Certificate Manager (ACM) · Service
- KMS vs CloudHSM · Comparison
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.