AWS CloudHSM provides dedicated hardware security modules (HSMs) in an AWS-managed cluster. It is designed for workloads that require direct control over cryptographic operations and HSM users, while keeping key material inside validated hardware security boundaries.
What makes CloudHSM different?
With CloudHSM, customers control the HSM users, credentials, and cryptographic operations through supported interfaces and client software. AWS operates and maintains the underlying infrastructure, but the customer has administrative control over the HSMs and the keys created within them. The service is useful when an application or compliance requirement calls for dedicated HSM capabilities rather than a fully managed key service abstraction.
CloudHSM vs. AWS KMS
| Dimension | AWS CloudHSM | AWS KMS |
|---|---|---|
| Service model | Dedicated HSM cluster | Managed key-management service |
| Administration | Customer manages HSM users and access within the cluster | AWS manages the underlying HSM infrastructure; customer controls key policies and usage permissions |
| Integration | Applications use supported PKCS #11, JCE, or OpenSSL interfaces and client software | Broad integration with AWS services and APIs |
| Typical clue | Dedicated HSM control or specialized cryptographic application | Centralized managed encryption keys for AWS resources |
Cluster architecture and availability
A CloudHSM cluster contains HSMs in a VPC and can span multiple Availability Zones for resilience. Applications connect through the CloudHSM client and supported cryptographic libraries. Plan network connectivity, security groups, client configuration, and quorum-based administration carefully. A single HSM is not a resilient design for a production workload.
Key ownership and recovery considerations
CloudHSM gives the customer control over HSM users and key operations, so operational discipline is essential. Protect administrator credentials, establish backup and recovery procedures, and understand how quorum authentication and cluster backups work. AWS does not have access to customer HSM keys in the same way an application administrator does; loss of required credentials or backups can have serious consequences.
When should you choose CloudHSM?
- A workload requires dedicated HSMs and control over HSM users.
- An application needs supported industry-standard cryptographic interfaces.
- A compliance or security design requires customer-controlled cryptographic operations in an HSM.
- A managed KMS integration meets the need more simply? Prefer KMS unless the scenario specifically calls for CloudHSM-level control.
Exam traps
- CloudHSM is not the default answer for every encryption requirement; AWS KMS is usually simpler for managed AWS key management.
- CloudHSM provides dedicated HSM capacity and customer control over HSM users.
- Applications must use supported client interfaces and network access to the cluster.
- Design for multi-AZ resilience and protect credentials and backups.
- CloudHSM and KMS can be used together in some architectures; they are not mutually exclusive.
Test yourself
Question 1
A regulated application requires dedicated HSMs and direct control over HSM users and cryptographic operations. Which AWS service is the best fit?
- AWS CloudHSM
- Amazon S3
- AWS Secrets Manager
- Amazon GuardDuty
Reveal answer
Correct answer: A. CloudHSM provides dedicated HSMs and customer control over HSM users and cryptographic operations.
Question 2
A team needs straightforward envelope encryption and broad integration with AWS services without administering HSM users. Which service should it evaluate first?
- AWS CloudHSM
- AWS KMS
- Amazon EC2 bare metal only
- AWS Direct Connect
Reveal answer
Correct answer: B. KMS is the managed key-management service with broad AWS integration; CloudHSM is for more specialized dedicated HSM control.
Key takeaway
Choose CloudHSM when the scenario explicitly requires dedicated HSMs and customer control over HSM users or cryptographic operations. Choose KMS for most managed AWS key-management needs unless a specialized HSM requirement changes the design.
Related topics
AWS Key Management Service (KMS) · AWS IAM · AWS Secrets Manager
Ready for the AWS Solutions Architect Associate (SAA-C03) exam?
Turn what you learned in this topic into exam-ready skills with original, scenario-based practice questions and detailed explanations.
Original practice questions. No dumps. No shortcuts.