SSH key not found

During provisioning of the middleware template, data lookups are being performed to retrieve information from the IBM Cloud or Amazon Web Services (AWS) accounts. When this error is encountered, the Pattern Manager public SSH key cannot be found in the appropriate vendor SSH key list.

Symptoms

If this key cannot be located, the Pattern Manager is not able to install the public SSH key on the virtual machine.

* data.ibmcloud_infra_ssh_key.camc_public_key: data.ibmcloud_infra_ssh_key.camc_public_key:
No ssh key found with name [camc_public_ssh_key_name]

Resolving the problem

The camc_public_ssh_key must be recreated in the appropriate Cloud account that is being used by the Managed services Automation Content runtime.

The camc_public_ssh_key was provided during the deployment of the Managed services Automation Content template deployment.

  • For IBM Cloud:

    1. Log in to the IBM Cloud Console External link icon.
    2. Select Classic Infrastructure > Manage > SSH Keys.
    3. Click Add.
    4. Cut and paste the contents of the camc_public_ssh_key into the Key Contents section.
    5. Enter the name of the key in the Label section.
    6. Click Add.
  • For AWS:

    1. Log in to the Amazon Web Services console External link icon.
    2. Click All services > Compute > EC2.
    3. Under the NETWORK & SECURITY section, click Key Pairs.
    4. Recreate the camc_public_ssh_key by clicking Create Key Pair or Import Key Pair.