Ends in
00
days
00
hrs
00
mins
00
secs
ENROLL NOW

🚀 25% OFF All Practice Exams & Video Courses, $2.99 eBooks, Savings on PlayCloud and CodeQuest – Cyber Week Blowout

AWS CloudHSM

Home » AWS » AWS CloudHSM

AWS CloudHSM

Last updated on November 30, 2025

AWS CloudHSM Cheat Sheet

  • A cloud-based hardware security module (HSM) that enables you to easily generate and use your own encryption keys on the AWS Cloud. It allows you to provision and manage single-tenant, FIPS 140-2 Level 3 validated HSM instances in your own VPC.

    • Single-Tenant Access: You have dedicated access to the HSM hardware; it is not shared with other customers.

    • Control: You manage the HSMs, users, and keys. AWS manages the hardware provisioning, backups, and network connectivity.

    • FIPS Compliance: Validated to FIPS 140-2 Level 3 (whereas AWS KMS is generally Level 2, with some Level 3 distinct endpoints).

    • Industry Standard APIs: Supports PKCS #11, Java Cryptography Extensions (JCE), and Microsoft CNG/KSP.

      Key Capabilities

Use Case

  • Offload SSL/TLS Processing: Perform SSL termination for web servers (e.g., NGINX, Apache) securely within the HSM.
  • Certificate Authority (CA): Protect the private keys of an issuing CA (Public Key Infrastructure).
  • TDE (Transparent Data Encryption): Store encryption keys for Oracle Database TDE or SQL Server TDE.
  • Digital Rights Management (DRM): Protect copyright and license keys.

Concepts

Clusters

  • A collection of individual HSMs that are automatically synchronized.

  • Tutorials dojo strip
  • High Availability: You can create a cluster with 1 to 28 HSMs. For high availability, you must place HSMs in different Availability Zones (AZs).

  • Load Balancing: Requests are automatically load-balanced across all HSMs in the cluster.

  • Instance Types: The legacy hsm1.medium is being deprecated. New clusters use hsm2m.medium.

Backups

  • Automated: CloudHSM performs periodic backups of the cluster (users, keys, policies).

  • Retention: Default retention is 90 days.

  • Security: Backups are encrypted with a unique, ephemeral key generated by the HSM itself. AWS cannot decrypt your backups.

  • Restoration: You can restore a cluster from a backup to a new cluster (e.g., for disaster recovery or cloning to another region).

HSM Users CloudHSM uses its own internal user management, distinct from AWS IAM.

  • Precrypto Officer (PRECO): A temporary user found on a newly provisioned HSM. Used solely to create the first Crypto Officer.

  • Crypto Officer (CO): Performs user management (creating/deleting users). Can change passwords but cannot perform cryptographic operations or use keys.

  • Crypto User (CU): Performs cryptographic operations (encrypt, decrypt, sign) and manages keys. This is the user your application uses.

  • Appliance User (AU): A system user used by AWS for synchronization and cloning. You cannot log in as the AU.

Quorum Authentication (M of N)

    • Supports multi-factor authentication (MFA) logic where M number of approvers out of N total users must authorize a sensitive administrative action (e.g., deleting a cluster).

Keys

  • Session Keys: Ephemeral keys that exist only in memory while the application is connected. Faster performance but lost upon disconnection.

  • Token Keys: Persistent keys stored on the HSM’s hardware. Automatically synchronized to all HSMs in the cluster.

CLI Tools

Modern Tool (Client SDK 5)

  • CloudHSM CLI (cloudhsm-cli): The primary unified tool. It creates a shell-like interactive environment to manage both users (CO tasks) and keys (CU tasks).

Legacy Tools (Client SDK 3)

  • CloudHSM Management Utility (cloudhsm_mgmt_util / CMU): Used by Crypto Officers to manage users.

  • Key Management Utility (key_mgmt_util / KMU): Used by Crypto Users to manage keys.

AWS CloudHSM Monitoring

  • AWS CloudTrail: Logs API calls made to the AWS CloudHSM service (e.g., CreateCluster, DeleteHsm, InitializeCluster).

  • Amazon CloudWatch Logs: Captures the HSM Audit Logs. This is the only place to see internal HSM activity, such as:

    • User logins (CO/CU).

    • Key generation/deletion events.

    • Crypto operations (if enabled).

  • Client SDK Logging: Diagnostic logs from the client software running on your EC2 instances.

Key CloudWatch Metrics:

  • HsmUnhealthy: Indicates if an HSM instance has failed.

  • HsmTemperature: Monitors hardware temperature.

  • HsmUsersAvailable: Tracks available user slots (limit 1024).

AWS CloudHSM Pricing

  • Hourly Fee: You are charged an hourly rate for each HSM you launch.
  • Note: If you have 2 HSMs for High Availability, you pay double the hourly rate.
  • No Upfront Cost: There is no termination fee, but you pay for the full hour if an instance is running for only part of it.
  • Backups: No charge for the backup storage service (stored in an S3 bucket owned by AWS).

AWS CloudHSM Cheat Sheet References:

https://aws.amazon.com/cloudhsm/
https://docs.aws.amazon.com/cloudhsm/latest/userguide/introduction.html

🚀 25% OFF All Practice Exams & Video Courses, $2.99 eBooks, Savings on PlayCloud and CodeQuest – Cyber Week Blowout

Tutorials Dojo portal

Learn AWS with our PlayCloud Hands-On Labs

🧑‍💻 50% OFF – CodeQuest Coding Labs

$2.99 AWS and Azure Exam Study Guide eBooks

tutorials dojo study guide eBook

New AWS Generative AI Developer Professional Course AIP-C01

AIP-C01 Exam Guide AIP-C01 examtopics AWS Certified Generative AI Developer Professional Exam Domains AIP-C01

Learn GCP By Doing! Try Our GCP PlayCloud

Learn Azure with our Azure PlayCloud

FREE AI and AWS Digital Courses

FREE AWS, Azure, GCP Practice Test Samplers

Subscribe to our YouTube Channel

Tutorials Dojo YouTube Channel

Follow Us On Linkedin

Written by: Admin User-1

AWS, Azure, and GCP Certifications are consistently among the top-paying IT certifications in the world, considering that most companies have now shifted to the cloud. Earn over $150,000 per year with an AWS, Azure, or GCP certification!

Follow us on LinkedIn, YouTube, Facebook, or join our Slack study group. More importantly, answer as many practice exams as you can to help increase your chances of passing your certification exams on your first try!

View Our AWS, Azure, and GCP Exam Reviewers Check out our FREE courses

Our Community

~98%
passing rate
Around 95-98% of our students pass the AWS Certification exams after training with our courses.
200k+
students
Over 200k enrollees choose Tutorials Dojo in preparing for their AWS Certification exams.
~4.8
ratings
Our courses are highly rated by our enrollees from all over the world.

What our students say about us?