Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Terraform ssh_private_key issue — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Terraform ssh_private_key issue

Received Response
15
Views
2
Comments
edited Aug 4, 2017 7:00AM in Oracle Cloud Infrastructure - General 2 comments

Summary

Terraform ssh_private_key issue

Content

Hi Folks,

I am using BMCS Terraform provider, and have an issue with running remote-exec. Specifically - the error that is generated:

Error applying plan:

1 error(s) occurred:

* null_resource.remote-exec: 1 error(s) occurred:

* Failed to read key "dhfgrt.. (truncated by author)": no key found

The above error is generated by applying single_instance example available at github: https://github.com/oracle/terraform-provider-baremetal/tree/master/docs/examples/compute/single_instance

It appears that remote-exec.tf is referring to private_key = "${var.ssh_private_key} which is defined in variables.tf as variable ssh_private_key {}.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!