AWS CloudHSM Cluster Configuration Fields Region Cluster ID Disaster Recovery
November 17, 202612 min readHina Khan
AWS CloudHSM gives you dedicated hardware security modules in the cloud, but its settings are spread across several documentation pages. Region, Cluster ID, cluster mode, and backups all matter, and each one comes back to bite you during a disaster recovery drill. This guide to AWS CloudHSM cluster configuration pulls them together. You'll learn what each field means, where the Region and Cluster ID appear in client setup, and how cross-Region disaster recovery really works. Commands are examples, so test them in a non-production account first.
What Is an AWS CloudHSM Cluster?
An AWS CloudHSM cluster is a group of hardware security modules (HSMs) that AWS keeps synchronized so they work as one logical unit, giving your applications a dedicated, customer-controlled place to generate and use cryptographic keys. Each cluster lives in one AWS Region, and you place its HSMs in subnets inside your own Amazon VPC.
Because the HSMs share the same keys and users, AWS CloudHSM can balance requests across them. As a result, adding HSMs in different Availability Zones improves both capacity and availability. AWS guidance recommends more than one HSM for production clusters.
Cluster Configuration Fields briefly
The table below summarizes the settings you meet when you create a cluster. Pay special attention to the ones you cannot easily change later.
Field
What it controls
Changing it later
Region
Where the cluster and its HSMs run
Not possible; restore a backup in another Region instead
VPC and subnets
The private network and Availability Zones for HSMs; one subnet per Availability Zone
Set at creation; plan your network first
Network type
IPv4 only, or dual-stack IPv4 and IPv6
Hard to change; restore a backup into a new cluster with the type you want
HSM type
The hardware generation, hsm1.medium or hsm2m.medium
Chosen at creation
Cluster mode
FIPS or non-FIPS behavior
Cannot be changed after creation
Cluster source
Create a new cluster or restore from an existing backup
Applies at creation only
Backup retention
How long AWS keeps backups; default 90 days, range 7 to 379 days
Can be changed later
Tags
Labels for cost tracking and ownership
Can be changed
Cluster ID
The unique identifier AWS assigns, in the form cluster- followed by characters
Assigned by AWS; never changes for that cluster
AWS also creates a security group for the cluster for you, which controls which instances may talk to the HSMs. Finally, remember a compatibility rule that matters for disaster recovery: backups from a FIPS-mode cluster can only restore FIPS-mode clusters, and the same applies to non-FIPS mode.
Region: Where Your Cluster Lives
CloudHSM is a regional service, so every cluster and backup belongs to a specific Region. That sounds obvious, yet it causes a surprising number of setup errors. For instance, if your AWS CLI default Region differs from the cluster's Region, tools that look up the cluster will not find it unless you pass the right Region.
β’ Pick the Region for your customers and rules. Data residency and regulatory duties may decide this for you, especially in Australia and for regulated US workloads.
β’ Check Availability Zone support. Not every Availability Zone supports CloudHSM in every Region. Check the AWS CloudHSM Regions and Endpoints list before you design subnets, including for Australian Regions.
β’ Spread HSMs across zones. Use one subnet per Availability Zone and place HSMs in more than one for resilience.
β’ Choose the DR Region early. Cross-Region backups copy key material to another Region, so select a destination that satisfies your residency requirements.
Cluster ID: Finding It and Using It
AWS assigns every cluster a unique Cluster ID when you create it. You will use it in client configuration, API calls, and scripts. Find it in the AWS CloudHSM console on the cluster details page, or list it with the AWS CLI:
The output includes a ClusterId value, the cluster state, the mode, the HSM type, and the subnets in use. Treat the Cluster ID as an identifier rather than a password. Even so, keep it out of public repositories along with network details.
Where the Region and Cluster ID Appear in Client Setup
Applications reach the cluster through the AWS CloudHSM Client SDK 5, which includes the CloudHSM CLI, PKCS#11, JCE, OpenSSL Dynamic Engine, and Windows key storage components. Support for Client SDK 3 and its older tools ended on January 1, 2025, so new work should use SDK 5. Each SDK 5 component has a configure tool, and the tool needs to know where your HSMs are. You can provide that in two ways:
Parameter
What it does
Notes
-a <HSM IP addresses>
Gives the tool the ENI IP addresses of your HSMs directly
Simple, but IP addresses change if you rebuild HSMs
--cluster-id <cluster-ID>
Letβs the tool look up your HSM addresses through the DescribeClusters API
Needs access to the CloudHSM API and permission to call it
--region <Region>
Tells the tool which Region to query
Required when the cluster is not in your CLI's default Region
--endpoint <URL>
Sets a specific CloudHSM API endpoint
Useful with private or non-default endpoints
# Option 1: point at HSM ENI addresses
sudo /opt/cloudhsm/bin/configure-cli -a <HSM_ENI_IP>
# Option 2: look the cluster up by ID, in a specific Region
The same --cluster-id and --region parameters work with the other configure tools, such as configure-pkcs11 and configure-jce. Check the Client SDK 5 configuration tool documentation for the exact requirements of your platform.
Disaster Recovery for AWS CloudHSM
CloudHSM keeps its HSMs synchronized inside one cluster, so losing a single HSM or Availability Zone is usually survivable if you have more than one HSM. A Regional failure is different. For that, AWS recommends keeping a copy of your cluster in another Region by copying a backup and creating a new cluster from it.
How Backups Work
AWS CloudHSM backs up clusters automatically, and you can also create backups yourself. Backups are stored in an Amazon S3 bucket owned by the AWS CloudHSM service, not in your own account. The retention setting decides how long they are kept, with a 90-day default. Therefore, set retention to match your recovery needs, because expired backups cannot be restored.
Copy a Backup to Another Region
You can copy a cluster backup across regions for cross-Region resilience, global workloads, and disaster recovery. Your IAM permissions must allow access to the source Region, and the copy appears in the destination Region with a status of CREATE_IN_PROGRESS until it completes.
Note that AWS has documented restrictions for AWS GovCloud (US), where backups cannot be copied in or out. Check the current documentation if you operate there.
Create the DR Cluster from the Backup
Cloning has two steps: copy the backup, then create a new cluster from it in the destination Region. The new cluster has its own Cluster ID, its own subnets, and its own HSM network addresses. Add HSMs in more than one Availability Zone afterward.
# In the DR Region: create a cluster from the copied backup
Confirm the exact parameters in the AWS CLI reference, because options can change. Also remember the mode rule: a FIPS backup restores a FIPS cluster, and a non-FIPS backup restores a non-FIPS cluster.
What Changes in Your Client Configuration
Setting
Primary cluster
DR cluster
Region
Source Region
Destination Region
Cluster ID
Original ID
New ID assigned to the restored cluster
HSM ENI addresses
Original addresses
New addresses in the DR VPC and subnets
VPC, subnets, and security group
Primary network
DR network; clients must be allowed in the new security group
IAM permissions
Primary account roles
Roles that can reach the DR Region and CloudHSM API
Client configuration
Points to primary cluster
Must be updated, or use add-cluster to hold both
What a Copied Backup Does Not Give You
A backup copy is a point in time, not a live replica. Keys created or changed after the backup was taken will not exist in the DR cluster until you copy a newer backup or follow AWS's documented approaches for synchronizing clusters. Consequently, your recovery point depends on how recent the copied backup is. Decide how often to copy backups based on how quickly your keys change and document the gap in your DR plan.
A CloudHSM Disaster Recovery Runbook Checklist
Record the basics. Note Region, Cluster ID, HSM type, mode, VPC, subnets, and retention for each cluster.
Pick the DR Region and confirm residency, quotas, and CloudHSM Availability Zone support there.
Grant least-privilege IAM access for copying backups and creating clusters.
Schedule backup copies and monitor their completion status.
Prepare the DR network: VPC, private subnets, and security groups for clients.
Practice a restore. Create a cluster from a copied backup, add HSMs, and connect a test client.
Update client configuration with the new Region, Cluster ID, and addresses, and confirm your application can use its keys.
Document and rehearse failback, including how you will handle keys created during the outage.
Key management is a high-trust area, so design access carefully. Separate the people who administer the cluster from the applications that use its keys. Limit IAM permissions for backup copy and cluster creation to a small group, and log activity with AWS CloudTrail. In addition, protect any credentials and certificates used to initialize and access the cluster, and never paste them into tickets or chat.
A zero-trust security approach fits well here, because it treats every request as untrusted until verified. Compliance needs vary: US organizations may meet FIPS and FedRAMP expectations, while Australian organizations often work with the ACSC Essential Eight and IRAP-assessed services. Confirm your obligations with a qualified adviser, including whether copying key material to another Region is allowed.
Common Mistakes and Troubleshooting
β’ Client cannot find the cluster: check that --region matches the cluster's Region, not just your CLI default.
β’ Wrong Cluster ID after a restore: a restored cluster has its own ID, so update client configuration and scripts.
β’ Mode mismatch on restore: FIPS and non-FIPS backups are not interchangeable.
β’ Single HSM in one zone: add HSMs in more than one Availability Zone to avoid a single point of failure.
β’ Retention too short: a backup that has expired cannot rescue you, so match retention to your recovery needs.
β’ Using retired tooling: Client SDK 3 tools are no longer supported, so move to SDK 5.
β’ Never testing the DR cluster: a restore you have not practiced is a guess.
If you are moving workloads and keys into AWS, plan this early. Our AWS cloud migration services include security and recovery design from the start.
AWS CloudHSM FAQs
What is an AWS CloudHSM cluster?
A CloudHSM cluster is a group of hardware security modules that AWS keeps synchronized so they act as one logical unit. It lives in one Region, and its HSMs sit in subnets in your VPC.
Where do I find my AWS CloudHSM Cluster ID?
Find it on the cluster details page in the AWS CloudHSM console or run aws cloudhsmv2 describe-clusters with the right Region. The ClusterId value begins with cluster-.
Why does my configure tool need a Region?
When you use --cluster-id, the tool calls the CloudHSM API to find your HSMs. If the cluster is not in your CLI's default Region, you must pass --region so the lookup goes to the right place.
Can I change the Region of an existing cluster?
No. Clusters are regional. To run in another Region, copy a backup there and create a new cluster from it.
Can I change the cluster mode after creation?
No. FIPS or non-FIPS mode is fixed when you create the cluster, and backups can only restore clusters in the same mode.
How does disaster recovery work for AWS CloudHSM?
You copy a cluster backup to another Region, then create a new cluster from it and add HSMs. The new cluster gets its own Cluster ID and network addresses, so you must update client configuration.
How long does AWS CloudHSM keep backups?
The default retention period is 90 days, and you can choose between 7 and 379 days. You can change the setting later.
Is a copied backup a live replica?
No. It is a point-in-time copy. Keys created after the backup was taken will not be in the DR cluster until you copy a newer backup or use a documented synchronization approach.
How many HSMs should a production cluster have?
More than one, placed in different Availability Zones. This improves availability and capacity, and AWS guidance recommends it for production.
Is Client SDK 3 still supported?
No. Support for Client SDK 3 and its tools ended on January 1, 2025. Use Client SDK 5 for new and existing deployments.
Conclusion
AWS CloudHSM cluster configuration is easy to get right on day one and easy to get wrong during a disaster. Record your Region, Cluster ID, mode, and retention. Know which fields cannot change. Copy backups to a deliberately chosen DR Region, and practice restoring them, because a restored cluster brings new IDs and addresses that your clients must learn.
Nuwair Systems is an IT services company, so please verify every command against the current AWS documentation and test in a non-production account. If your team wants help planning key management recovery, scripting drills, or reviewing your AWS security design, explore our disaster recovery services or contact us.