What Is AWS CloudHSM? HSM Operations and When to Choose KMS
AWS CloudHSM lets customers create keys and perform cryptographic operations in a single-tenant hardware security module (HSM) cluster that they own and manage. It gives customers more direct control over the key-protection hardware than the standard AWS KMS key store, but also makes them responsible for cluster availability, durability, scaling, and HSM user credentials. Start by asking whether a regulation or architecture actually requires direct HSM control; if standard AWS KMS meets the requirement, moving to CloudHSM adds work without necessarily improving security.
This article describes AWS CloudHSM and AWS KMS based on documentation checked on November 19, 2026. It does not assume other cloud HSM services use the same operating model.
What is an HSM, and how are keys used in CloudHSM?
A hardware security module (HSM) is a dedicated device designed to protect cryptographic keys and perform operations such as key generation, signing, encryption, and decryption. In AWS CloudHSM, multiple HSMs form a cluster that the customer manages. To perform cryptographic work, create HSM users and keys, then call operations through supported interfaces such as CloudHSM CLI, PKCS #11, JCE, or CNG/KSP for Windows.
CloudHSM users and AWS IAM users have different roles. IAM policies control permissions to create or manage AWS resources such as a cluster through AWS APIs. After the cluster exists, operations inside the HSM require authentication with HSM user credentials. AWS documentation says only a crypto user (CU) can create a key, and the CU that creates it owns and manages it. IAM access to the AWS account alone therefore does not grant use of an HSM key.
How does CloudHSM differ from standard AWS KMS?
Both services use HSMs to protect key material, but they assign operations and control differently. With the standard AWS KMS key store, AWS manages KMS HSM infrastructure, scaling, and maintenance; customers use IAM and key policies to control key access. With CloudHSM, customers configure and manage a dedicated cluster and take on more responsibility for HSM users, keys, backups, capacity, and availability.
| Option | Key material and operations | When to consider it |
|---|---|---|
| Standard AWS KMS key store | AWS generates and protects key material in AWS-managed HSMs and handles scaling and maintenance | AWS service integration, high throughput, and simpler operations matter, or key policies meet the control requirement |
| KMS CloudHSM custom key store | KMS key material is created in a customer-owned CloudHSM cluster, where cryptographic operations also run | A documented requirement calls for key material in a single-tenant HSM while retaining the KMS API and service integrations |
| Direct AWS CloudHSM cluster | The customer creates HSM users and keys and calls cryptographic operations through supported libraries or CLI | The application must use interfaces such as PKCS #11, JCE, or CNG/KSP directly, or needs to operate the HSM user/key model itself |
AWS says the standard KMS key store offers most customers a balance of security, performance, cost, and operational simplicity. A CloudHSM custom key store is not inherently more secure. The key difference is that customers control the HSM and key material more directly, in exchange for more operational work and cost.
A CloudHSM custom key store differs from using a cluster directly because it retains the KMS API and supported AWS service integrations. However, custom key stores support symmetric encryption keys only. Some KMS features—including asymmetric keys, HMAC, automatic rotation, multi-Region keys, and imported key material—are not supported. AWS also documents low transactions per second (TPS), higher latency, cluster-dependent availability, and no public SLA for CloudHSM key stores. Check whether the workload is a supported low-TPS use such as EBS or RDS encryption; AWS says not to use them for high-TPS analytics, high-volume S3, or DynamoDB workloads.
How do quorum approvals and user separation help?
CloudHSM has its own user layer for operations inside the HSM. Protect those credentials: AWS cannot recover HSM user credentials if they are lost. AWS recommends at least two administrators to reduce lockout risk, quorum approval for user-management operations, and multiple crypto users with limited, distinct responsibilities.
Quorum authentication (M of N) prevents a single user from performing selected operations alone; at least two HSM users must approve. With CloudHSM CLI, quorum can govern administrative tasks such as creating or deleting users and changing passwords, as well as some key operations such as signing, sharing, and wrapping. It adds an approval control but can delay work when approvers are unavailable, so include emergency procedures in the design.
What changes when KMS uses a CloudHSM-backed key store?
To create a CloudHSM key store, first prepare an active cluster with at least two active HSMs in different Availability Zones. Create a dedicated crypto user (kmsuser) for KMS to manage keys in the cluster. Then create and connect a custom key store in KMS and create symmetric KMS keys within it. This setup spans both AWS KMS and CloudHSM.
While connected, KMS performs cryptographic operations in the associated HSM cluster. If disconnected, you can view and manage the key store and KMS keys, but cannot create new KMS keys there or use those keys for cryptographic operations. Cluster failure, misconfiguration, or HSM user problems can affect encrypted resources that depend on those keys. Cluster backups, HSM count, network connection, credentials, and recovery procedures become part of application availability.
The standard AWS KMS key store has a public availability SLA and automatic scaling. A CloudHSM custom key store has availability and durability that depend more on the customer-managed cluster and is not covered by a public SLA. If key-use control through a key policy meets the requirement, the standard store may be simpler. Consider a custom store when a clear regulatory or contractual requirement calls for key material in a single-tenant HSM, after evaluating feature limits, throughput, cost, and operational effort.
What should you check before and after adoption?
First distinguish whether the requirement is “who can use the key?” or “must the key material stay in a customer-managed, single-tenant HSM?” The first may be met by standard AWS KMS key policies. For the second, decide whether you need direct CloudHSM interfaces or the KMS-integrated custom key store, then compare required key types, AWS integrations, throughput, latency, availability, and cost.
Before production use:
Define the cluster Region, Availability Zone spread, active HSM count, and backup recovery process.
Separate IAM resource-management permissions from HSM user permissions; establish credential storage and rotation procedures for administrators and crypto users.
Define key creation, sharing, use, and quorum-approval procedures, including how to avoid lockout if an administrator leaves or loses a password.
If using a KMS custom key store, rehearse how disconnection, HSM failure, or failed key access affects the application and how to recover.
Validate actual application request volume and latency needs; review custom-store feature limits and cost.
AWS CloudHSM gives customers more direct control of HSM operations and key material, along with responsibility for the cluster, users, keys, and backups. Standard KMS may be the simpler choice for most KMS-integrated encryption needs. Choose CloudHSM when single-tenant HSM control is a real requirement and the team is prepared for its operational and performance constraints.
Sources
[AWS KMS: Compare key stores and operating models](https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html)
[AWS KMS: CloudHSM key store concepts and use](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html)
[AWS CloudHSM: Manage cluster keys](https://docs.aws.amazon.com/cloudhsm/latest/userguide/manage-keys.html)
[AWS CloudHSM: User-management best practices](https://docs.aws.amazon.com/cloudhsm/latest/userguide/bp-hsm-user-management.html)
[AWS CloudHSM: Quorum authentication (M of N)](https://docs.aws.amazon.com/cloudhsm/latest/userguide/key-quorum-auth-chsm-cli.html)
[AWS KMS: Requirements to create a CloudHSM custom key store](https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html)