forked from oracle-quickstart/oci-prerequisites
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv-vars.ps1
More file actions
16 lines (12 loc) · 684 Bytes
/
Copy pathenv-vars.ps1
File metadata and controls
16 lines (12 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# to source this file run:
# Set-ExecutionPolicy Bypass -Scope Process -Force; .\env-vars.ps1
$env:TF_VAR_compartment_ocid="<compartment OCID>"
# Required for the OCI Provider
$env:TF_VAR_tenancy_ocid="<tenancy OCID>"
$env:TF_VAR_user_ocid="<user OCID>"
$env:TF_VAR_fingerprint = Get-Content (Resolve-Path "~/.oci/oci_api_key.fingerprint") -Raw -Encoding ASCII
$env:TF_VAR_private_key_path="~/.oci/oci_api_key.pem"
$env:TF_VAR_region="us-ashburn-1"
# Keys used to SSH to OCI VMs
$env:TF_VAR_ssh_public_key = Get-Content (Resolve-Path "~/.ssh/oci.pub") -Raw -Encoding ASCII
$env:TF_VAR_ssh_private_key = Get-Content (Resolve-Path "~/.ssh/oci") -Raw -Encoding ASCII