Hello. I have troubles connecting to OCI following the guide: https://docs.oracle.com/en-us/iaas/developer-tutorials/tutorials/tf-provider/01-summary.htm
I'm getting the following error message:
│ Error: can not create client, bad configuration: did not find a proper configuration for private key
│
│ with provider["registry.terraform.io/hashicorp/oci"],
│ on provider.tf line 1, in provider "oci":
│ 1: provider "oci" {
│
The file is like this (used key without passphrase):
provider "oci" {
tenancy_ocid = "ocid1.tenancy.oc1..aaaaaaaase..."
user_ocid = "ocid1.user.oc1..aaaaaaaagp..."
private_key_path = "/home/javier/.oci/oci_api_key_public.pem"
fingerprint = "xx:yy:..."
region = "us-ashburn-1"
}
This is what is located under the .oci folder:
javier@LAPTOP:~/.oci$ ls
oci_api_key.pem oci_api_key_public.pem
what could be the problem here? can any one point me in the right direction? Thanks