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
- 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:
Create a CloudHSM cluster across two AZs and connect it to KMS as a custom key store; create KMS keys in that store and use them for S3 and EBS.
AWS documentation
KMS multi-Region keys and encrypted sharing
KMS multi-Region keys and their use with DynamoDB global tables and Aurora global databases, encryption considerations for S3 replication, and sharing AMIs encrypted with KMS.
SSM Parameter Store
AWS Systems Manager Parameter Store for configuration and secrets, SecureString encryption with KMS, parameter hierarchies, standard and advanced tiers, and parameter policies.