Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.

Commit 2945769

Browse files
committed
functioning ps
1 parent 9e9c59e commit 2945769

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

env-vars.ps1

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
# to source this file run:
2-
# Set-ExecutionPolicy Bypass -Scope Process -Force; .\env-vars.ps1
3-
4-
$env:TF_VAR_compartment_ocid="<compartment OCID>"
5-
6-
# Required for the OCI Provider
7-
$env:TF_VAR_tenancy_ocid="<tenancy OCID>"
8-
$env:TF_VAR_user_ocid="<user OCID>"
9-
$env:TF_VAR_fingerprint=$(cat ~/.oci/oci_api_key.fingerprint)
10-
$env:TF_VAR_private_key_path="~/.oci/oci_api_key.pem"
11-
$env:TF_VAR_region="us-ashburn-1"
12-
13-
# Keys used to SSH to OCI VMs
14-
$env:TF_VAR_ssh_public_key=$(cat ~/.ssh/oci.pub)
15-
$env:TF_VAR_ssh_private_key=$(cat ~/.ssh/oci)
1+
# to source this file run:
2+
# Set-ExecutionPolicy Bypass -Scope Process -Force; .\env-vars.ps1
3+
4+
$env:TF_VAR_compartment_ocid="<compartment OCID>"
5+
6+
# Required for the OCI Provider
7+
$env:TF_VAR_tenancy_ocid="<tenancy OCID>"
8+
$env:TF_VAR_user_ocid="<user OCID>"
9+
10+
$env:TF_VAR_fingerprint = Get-Content (Resolve-Path "~/.oci/oci_api_key.fingerprint") -Raw -Encoding ASCII
11+
$env:TF_VAR_private_key_path="~/.oci/oci_api_key.pem"
12+
$env:TF_VAR_region="us-ashburn-1"
13+
14+
# Keys used to SSH to OCI VMs
15+
$env:TF_VAR_ssh_public_key = Get-Content (Resolve-Path "~/.ssh/oci.pub") -Raw -Encoding ASCII
16+
$env:TF_VAR_ssh_private_key = Get-Content (Resolve-Path "~/.ssh/oci") -Raw -Encoding ASCII

0 commit comments

Comments
 (0)