IBM-Cloud / vpc-flowlogs

VPC Flowlogs
Apache License 2.0
2 stars 7 forks source link

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

Open lionelmace opened 4 years ago

lionelmace commented 4 years ago

@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 commented 4 years ago

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