JENKINS -- My Work -Project - DNS
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
https://www.youtube.com/watch?v=FX322RVNGj4
Windows to connect to OCI
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Created 3 Compute Instances on OCI .
1. Jenkins server : OPA-Instance_Sreejith_1
Step 1 : Installed Terraform on Windows
env-vars.ps1 file
check the setting> dir env:
https://www.terraform.io/downloads
Clicked on 386
Unzipped in this location : D:\JENKINS-Project-Test\OCI-Compute-Instance
In the variables file
variable "api_private_key_path" {
type = string
default = "C:/Users/sreejith_b/.oci/oci-private-key.pem"
description = "private access key"
}
In the evn-vars-ps1
$env:TF_VAR_ssh_public_key=$(Get-Content C:\Users\sreejith_b\.oci\oci-public-key.pem)
#
#### Private key used on the compute and database instance
#$env:TF_VAR_ssh_private_key=$(cat C:\Users\sreejith_b\.oci\key_name.pem)
$env:TF_VAR_ssh_private_key=$(Get-Content C:\Users\sreejith_b\.oci\oci-private-key.pem)

Comments
Post a Comment