Create an HSM
After you create a cluster, you can create an HSM. However, before you can create an HSM
in your cluster, the cluster must be in the uninitialized state. To determine the cluster's
state, view the clusters page in the AWS CloudHSM
console
To create an HSM (console)
Open the AWS CloudHSM console at https://console.aws.amazon.com/cloudhsm/home
. -
Select the radio button next to the ID of the cluster you want to create an HSM for.
-
Select Actions. From the drop down menu, choose Initialize.
-
Choose an Availability Zone (AZ) for the HSM that you are creating.
-
Select Create.
To create an HSM (AWS CLI)
-
At a command prompt, run the create-hsm command. Specify the cluster ID of the cluster that you created previously and an Availability Zone for the HSM. Specify the Availability Zone in the form of
us-west-2a
,us-west-2b
, etc.$
aws cloudhsmv2 create-hsm --cluster-id
<cluster ID>
--availability-zone<Availability Zone>
{ "Hsm": { "HsmId": "hsm-ted36yp5b2x", "EniIp": "10.0.1.12", "AvailabilityZone": "us-west-2a", "ClusterId": "cluster-igklspoyj5v", "EniId": "eni-5d7ade72", "SubnetId": "subnet-fd54af9b", "State": "CREATE_IN_PROGRESS" } }
To create an HSM (AWS CloudHSM API)
-
Send a CreateHsm request. Specify the cluster ID of the cluster that you created previously and an Availability Zone for the HSM.
After you create a cluster and HSM, you can optionally verify the identity of the HSM, or proceed directly to Initialize the cluster.