You can remove an HSM by using the AWS CloudHSM
console
To remove an HSM (console)
Open the AWS CloudHSM console at https://console.aws.amazon.com/cloudhsm/home
. -
Choose the cluster that contains the HSM that you are removing.
-
On the HSMs tab, choose the HSM that you are removing. Then choose Delete HSM.
-
Confirm that you want to delete the HSM. Then choose Delete.
To remove an HSM (AWS CLI)
-
At a command prompt, issue the delete-hsm command. Pass the ID of the cluster that contains the HSM that you are deleting and one of the following HSM identifiers:
-
The HSM ID (
--hsm-id
) -
The HSM IP address (
--eni-ip
) -
The HSM's elastic network interface ID (
--eni-id
)
If you don't know the values for these identifiers, issue the describe-clusters command.
$
aws cloudhsmv2 delete-hsm --cluster-id
<cluster ID>
--eni-ip<HSM IP address>
{ "HsmId": "hsm-lgavqitns2a" }
-
To remove an HSM (AWS CloudHSM API)
-
Send a DeleteHsm request, specifying the cluster ID and an identifier for the HSM that you are deleting.