Skip to content
This repository has been 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

Open
lionelmace opened this issue Jul 30, 2020 · 1 comment
Open

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

lionelmace opened this issue Jul 30, 2020 · 1 comment

Comments

@lionelmace
Copy link

@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
@powellquiring
Copy link
Contributor

Did you verify that the ssh key is available in the region that is used by the terraform configuration? It looks like the schematics workspace will be in the same region as the ibmcloud cli, that was initialized by ibmcloud target in 000

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants