Procedure for recreating key pairs (AWS)

Virtual Storage Platform One SDS Block and SDS Cloud Troubleshooting Reference

Version
1.19.x
Audience
anonymous
Part Number
MK-24VSP1SDS029-03
ft:lastEdition
2026-04-07

If you are instructed to create a key pair for troubleshooting a failure that occurs when adding storage nodes, perform the following procedure to create a key pair and register it to Parameter Store.

Note on the procedure

In the following procedure, long command lines begin on a new line delimited by "\."

  1. If a key pair having the following name exists in the list of key pairs of the AWS Management Console, delete the key pair. If such a key pair does not exist, go to step 2.

    Key pair name: <stack-name-at-the-time-of-installation>-KeyPair

    aws ec2 delete-key-pair --key-name \
    <stack-name-at-the-time-of-installation>-KeyPair
  2. Create a new key pair.
    aws ec2 create-key-pair --key-name \
    <stack-name-at-the-time-of-installation>-KeyPair \
    --key-type rsa --key-format pem --query "KeyMaterial" \
    --output text > <stack-name-at-the-time-of-installation>-KeyPair.pem
  3. Obtain the ID of the key pair you created in step 2.
    aws ec2 describe-key-pairs --key-names \
    "<stack-name-at-the-time-of-installation>-KeyPair" \
    --query "KeyPairs[0].KeyPairId" --output text
  4. Register the created new key pair in Parameter Store.
    aws ssm put-parameter --name \
    "/ec2/keypair/<ID-of-key-pair-confirmed-in-step-3>" --type "SecureString" \
    --value "$(cat <stack-name-at-the-time-of-installation>-KeyPair.pem)"
  5. Delete the key pair from the controller node.
    rm -i <stack-name-at-the-time-of-installation>-KeyPair.pem

    You can run the command to verify whether the file to be deleted is correct. If the file is correct, delete it.