Security, Identity, and Compliance
AWS CloudHSM
Single-tenant hardware security modules (HSMs) in the AWS Cloud that give you full control of your cryptographic keys and the algorithms you use. Use it when you need to operate your own HSMs instead of a fully managed key service.
Exam phrases that point here
«dedicated, single-tenant HSMs»
CloudHSM gives the customer their own HSMs inside their VPC; other customers do not share those HSMs.
When not: If the scenario only asks for managed keys with auditing and integration with AWS services, AWS KMS is simpler and cheaper: it also protects keys in validated HSMs (FIPS 140-3 Level 3), although in KMS's fleet of HSMs rather than in dedicated HSMs.
«AWS must not be able to access the encryption keys»
In CloudHSM, the credentials and the keys belong only to the customer: AWS manages the hardware but cannot get in or recover the keys.
When not: If the requirement is that the keys be outside AWS, on your own infrastructure, a KMS external key store fits. And if controlling the key policy is enough, a KMS customer managed key meets it.
«the application uses PKCS#11, JCE, or OpenSSL for cryptographic operations»
CloudHSM provides libraries with those standard interfaces; KMS does not integrate natively with them and requires calling its API.
When not: If the application can use the AWS SDK and there is no dedicated HSM requirement, KMS avoids managing clusters, users, and backups.
«use keys from your own HSM with AWS services such as S3 or EBS»
A KMS custom key store backed by CloudHSM generates the keys in the customer's cluster, and integrated services use them like any other KMS key.
When not: That key store has no automatic rotation, no asymmetric keys, and no key import. If there is no dedicated HSM requirement, the standard KMS key store is the simplest answer.
«Oracle Transparent Data Encryption (TDE) with keys in an HSM»
CloudHSM has a tested integration with Oracle Database to store the TDE master key.
When not: There is no direct support for Amazon RDS for Oracle: the path is KMS with a custom key store backed by CloudHSM.
«card payment operations, such as translating PIN blocks»
It is an HSM encryption clue in the financial sector, which is why it is usually associated with CloudHSM.
When not: CloudHSM offers general-purpose HSMs and does not currently perform payment operations such as PIN block translation; for that, AWS has AWS Payment Cryptography.