Skip to Content

AWS CloudHSM

AWS CloudHSM for dedicated, single-tenant hardware security modules, who manages what, high availability across AZs, integration with KMS custom key stores, and CloudHSM vs KMS.

What it is

AWS CloudHSM: a cluster of single-tenant HSMs spread across Availability Zones keeps keys synchronised; the customer manages the keys and users through the CloudHSM client, and AWS KMS can use the cluster as a custom key store AWS CloudHSM: a cluster of single-tenant HSMs spread across Availability Zones keeps keys synchronised; the customer manages the keys and users through the CloudHSM client, and AWS KMS can use the cluster as a custom key store

Dedicated HSMs, run by AWS, keys managed by the customer.
  • KMS: AWS manages the software for encryption.
  • CloudHSM: AWS provisions encryption hardware.
  • Dedicated hardware (HSM = Hardware Security Module), single-tenant.
  • The customer manages its own encryption keys entirely (not AWS).
  • The HSM device is tamper resistant, FIPS 140-2 or 140-3 Level 3 compliant.
  • Supports both symmetric and asymmetric encryption (SSL/TLS keys).
  • No free tier.
  • The CloudHSM client software is required.
  • Redshift supports CloudHSM for database encryption and key management.
  • A good option to use with SSE-C encryption (the customer holds the keys S3 needs).

Who manages what:

  • AWS manages the hardware.
  • IAM permissions only allow creating, reading, updating and deleting an HSM cluster.
  • The CloudHSM software manages the keys and the users.

High availability

  • CloudHSM clusters are spread across multiple AZs (HA).
  • Great for availability and durability: keys are synchronised between the HSMs of a cluster.

Integration with AWS services

  • Through integration with KMS: configure a KMS custom key store backed by CloudHSM.
  • Services such as EBS, S3 and RDS then use KMS as usual, while the key material lives in the customer's HSMs.
  • Key usage is still logged in CloudTrail.

CloudHSM vs KMS

AWS KMS:

  • Multi-tenant, FIPS 140-3 Level 3.
  • Keys: AWS owned, AWS managed, customer managed.
  • Symmetric, asymmetric, digital signing.
  • Keys can be multi-Region (replicas); otherwise they stay in their Region.
  • Access with IAM; HA managed by AWS.
  • Audit with CloudTrail and CloudWatch.
  • Free tier.

AWS CloudHSM:

  • Single-tenant, FIPS 140-2 or 140-3 Level 3.
  • Customer managed keys only.
  • Symmetric, asymmetric, digital signing and hashing.
  • Deployed and managed in a VPC (shareable across VPCs with peering).
  • SSL/TLS acceleration, Oracle TDE acceleration.
  • The customer creates users and manages their permissions; HA by adding HSMs in several AZs.
  • Audit with CloudTrail, CloudWatch, and MFA support.
  • No free tier.

Real-world examples

  • A payment processor must keep keys on single-tenant, FIPS-validated hardware it controls. It uses a CloudHSM cluster in two AZs as a KMS custom key store, so S3 and EBS still use KMS.
  • A web company offloads TLS handshakes for its web servers to CloudHSM.

Exam tips

  • "Dedicated, single-tenant hardware", "you manage the keys", "FIPS 140 Level 3 HSM you control" → CloudHSM.
  • "Keys must never be accessible to AWS" → CloudHSM.
  • "SSE-C with keys in an HSM", "Oracle TDE", "SSL offload" → CloudHSM.
  • "Use CloudHSM keys with S3 or EBS encryption" → KMS custom key store backed by CloudHSM.

Common traps

  • "AWS can recover your CloudHSM keys." The customer owns them; lose the credentials and the keys are gone.
  • "CloudHSM has a free tier." It doesn't.

Check yourself

An HSM costs well over a dollar an hour, so instead:

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt