Create an HSM user admin using CloudHSM CLI
Follow these steps to create a hardware security module (HSM) admin user using the CloudHSM CLI.
-
Use the following command to start CloudHSM CLI interactive mode.
-
Use the login command and log in to the cluster as the admin.
aws-cloudhsm >
login --username
<USERNAME>
--role admin -
The system prompts you for your password. Enter the password, and the output shows that the command was successful.
Enter password:
{ "error_code": 0, "data": { "username": "admin", "role": "admin" } }
-
Enter the following command to create an admin:
aws-cloudhsm >
user create --username
<USERNAME>
--role admin -
Enter the password for the new user.
-
Re-enter the password to confirm the password you entered is correct.