Skip to Content
Asterrr's Handbook
Service cheat sheetsSecurity and identity cheat sheets

KMS vs CloudHSM

Choose between the managed key service and a single-tenant HSM cluster, and when to combine them.

KMS is the managed key service that integrates with AWS services. CloudHSM gives you your own HSM cluster in your VPC with keys that only your HSM users control.

Your VPCdata keycustom key storeoffload TLSCloudHSM clusterWeb server TLSS3 or EBS or RDSKMS key
A KMS custom key store lets KMS keys live in your CloudHSM cluster, which gives AWS service integration with HSM key custody.

Comparison

KMSCloudHSM
TenancyManaged by AWSSingle-tenant cluster in your VPC
Key custodyAWS manages the HSMs. You control key policies.You create HSM users. Only they can use the keys. Independent authentication from AWS.
ValidationKMS HSMs are FIPS 140-3 Level 3 validated or in validationFIPS 140-2 Level 3 or FIPS 140-3 Level 3, depending on instance type
IntegrationNative with S3, EBS, RDS and most servicesApplications call the HSM directly through PKCS#11, JCE or CNG
Typical useEnvelope encryption, service encryption, signingTLS offload, protecting a CA's private key, Oracle TDE
AvailabilityRegional, automaticCluster across AZs. You add HSMs. AWS handles patching and backup.
Direct encryption sizeUp to 4,096 bytes with a KMS keyn/a. Application defined
LoggingCloudTrailHSM audit logs

Which one to use

RequirementPick
Encrypt S3, EBS or RDS with minimal effortKMS
Regulation demands single-tenant HSM and exclusive key controlCloudHSM
Need service integration and your own HSMKMS with a CloudHSM custom key store
Offload SSL/TLS for web serversCloudHSM
Generate data keys for envelope encryptionKMS

Legacy

CloudHSM instance type hsm1.medium is FIPS 140-2. AWS recommends migrating to hsm2m.medium, which is FIPS 140-3 certified. AWS's compliance page notes the hsm1.medium certificate moved to the historical list on 2026-01-04.

Exam signal

"Customer must control the HSM and its users", "single-tenant" or "PKCS#11" means CloudHSM. "Audit every use with CloudTrail and integrate with S3" means KMS.

Exam trap

KMS encrypts only small payloads directly. For large data, generate a data key and encrypt locally (envelope encryption). KMS does not store or manage those data keys.

KMS key types, Certificate Manager

Further reading

On this page