Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Error: No SSH Key found with name ssh-rsa in Terraform apply #1

@lionelmace

Description

@lionelmace

@powellquiring Great step by step tutorial so far. very clear.

Yet I haven't been through all the steps yet. I face this error during the terraform apply

 2020/07/30 08:42:52 Starting command: terraform apply -state=terraform.tfstate -var-file=schematics.tfvars -auto-approve -no-color -parallelism=1
 2020/07/30 08:42:55 Terraform apply | data.ibm_is_image.ubuntu: Refreshing state...
 2020/07/30 08:42:56 Terraform apply | data.ibm_is_ssh_key.ssh_key: Refreshing state...
 2020/07/30 08:42:57 Terraform apply | 
 2020/07/30 08:42:57 Terraform apply | Error: No SSH Key found with name ssh-rsa
 2020/07/30 08:42:57 Terraform apply | 
 2020/07/30 08:42:57 Terraform apply |   on ibm.tf line 24, in data "ibm_is_ssh_key" "ssh_key":
 2020/07/30 08:42:57 Terraform apply |   24: data "ibm_is_ssh_key" "ssh_key" {
 2020/07/30 08:42:57 Terraform apply | 
 2020/07/30 08:42:57 Terraform apply | 
 2020/07/30 08:42:57 Terraform APPLY error: Terraform APPLY errorexit status 1
 2020/07/30 08:42:57 Could not execute action

The steps ./000-prereqs.sh did not show any errors
OK
Target Generation: 2
>>> Verify the VPC ssh key exists...f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions