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

Commit 089839f

Browse files
committed
simplifying a bit....
1 parent 82b026a commit 089839f

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,11 @@ Now, let's take a look at the `env-vars` file.
5252

5353
![](./images/4%20-%20env-vars.png)
5454

55-
The script pulls values from the keys you created in the earlier steps. You'll need to update three fields with values you can find in the [console](https://console.us-phoenix-1.oraclecloud.com/):
55+
The script pulls values from the keys you created in the earlier steps. You'll need to update two fields with values you can find in the [console](https://console.us-phoenix-1.oraclecloud.com/):
5656

5757
* TF_VAR_tenancy_ocid
5858
* TF_VAR_user_ocid
59-
* TF_VAR_compartment_ocid
6059

61-
When you've set all the variables, source the file with the command:
62-
63-
source env-vars
60+
When you've set all the variables, you can source the file with the command `source env-vars` or you could stick the contents of the file in `~/.bash_profile`
6461

6562
With that, you're all ready to start running Terraform commands!

env-vars

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
#!/bin/sh
22

3+
# Required for the OCI Provider
34
export TF_VAR_tenancy_ocid="<tenancy OCID>"
45
export TF_VAR_user_ocid="<user OCID>"
5-
6-
### Compartment
7-
export TF_VAR_compartment_ocid="<compartment OCID>"
8-
9-
### Region
10-
export TF_VAR_region="us-ashburn-1"
11-
12-
### Keys used by OCI
136
export TF_VAR_fingerprint=$(openssl rsa -pubout -outform DER -in ~/.oci/oci_api_key.pem | openssl md5 -c)
147
export TF_VAR_private_key_path="~/.oci/oci_api_key.pem"
8+
export TF_VAR_region="us-ashburn-1"
159

16-
### Keys used to SSH to VMs
10+
# Keys used to SSH to OCI VMs
1711
export TF_VAR_ssh_public_key=$(cat ~/.ssh/oci.pub)
1812
export TF_VAR_ssh_private_key=$(cat ~/.ssh/oci)

0 commit comments

Comments
 (0)