Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Terraform ssh_private_key issue

5b3aa822-faaf-4c37-b628-55cffa51a1c4Jun 23 2017 — edited Aug 4 2017

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 {}.

I have tried inserting numerous key formats into the .tf  (both raw key data and file system paths) but always encounter an error.

If there is any documentation or guidance available regarding how to format/populate this value - would be much appreciated.

Thanks..

This post has been answered by 5b3aa822-faaf-4c37-b628-55cffa51a1c4 on Jun 24 2017
Jump to Answer
Comments
Post Details
Added on Jun 23 2017
2 comments
2,585 views