Skip to content

Commit

Permalink
chore: make TF authentication reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
hrvolapeter committed Jul 26, 2024
1 parent e20a0db commit 8e9169d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 43 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ Example of a DRG attachment creation:

### **5.1 Setup Terraform Authentication**

For authenticating against the OCI tenancy terraform execute the following [instructions](common_terraform_authentication.md).
For authenticating against the OCI tenancy terraform execute the following [instructions](/commons/content/terraform_authentication.md).


 
Expand Down Expand Up @@ -644,7 +644,7 @@ Run ```terraform plan``` with the IAM and Network configuration.

```
terraform plan \
-var-file ../terraform-oci-open-lz/workload-extensions/oci-lz-ext-ebs/op02-manage-ebs-lz-extension/json/oci-credentials.tfvars.json \
-var-file ../terraform-oci-open-lz/commons/content/oci-credentials.tfvars.json \
-var-file ../terraform-oci-open-lz/workload-extensions/oci-lz-ext-ebs/op02-manage-ebs-lz-extension/json/ebs_identity_cmp_grp_pl_v1.auto.tfvars.json \
-var-file ../terraform-oci-open-lz/workload-extensions/oci-lz-ext-ebs/op02-manage-ebs-lz-extension/json/ebs_network_rt_sl_v1.auto.tfvars.json \
-state ../terraform-oci-open-lz/workload-extensions/oci-lz-ext-ebs/op02-manage-ebs-lz-extension/terraform.tfstate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ The network layer covers the following resources:

## **5. Run with Terraform CLI**
### **5.1 Setup Terraform Authentication**
For authenticating against the OCI tenancy terraform execute the following [instructions](common_terraform_authentication.md).
For authenticating against the OCI tenancy terraform execute the following [instructions](/commons/content/terraform_authentication.md).
### **5.2 Clone this Git repo to your Machine**
```
git clone git@github.com:oracle-quickstart/terraform-oci-open-lz.git
Expand All @@ -161,7 +161,7 @@ Run ```terraform init``` to download all the required external terraform provide
Run ```terraform plan``` with the IAM and Network configuration.
```
terraform plan \
-var-file ../terraform-oci-open-lz/workload-extensions/oci-lz-ext-ocvs/op01-ocvs-workload-extension/oci-credentials.tfvars.json \
-var-file ../terraform-oci-open-lz/commons/content/oci-credentials.tfvars.json \
-var-file ../terraform-oci-open-lz/workload-extensions/oci-lz-ext-ocvs/op01-ocvs-workload-extension/oci_open_lz_one-oe_identity.auto.tfvars.json \
-var-file ../terraform-oci-open-lz/workload-extensions/oci-lz-ext-ocvs/op01-ocvs-workload-extension/oci_open_lz_one-oe_network.auto.tfvars.json
```
Expand All @@ -176,7 +176,7 @@ The ideal scenario regarding the **state file** will be for each configuration t
Run terraform plan with the IAM and Network configuration. After its execution the configured resources will be provisioned or updated on OCI.
```
terraform apply \
-var-file ../terraform-oci-open-lz/workload-extensions/oci-lz-ext-ocvs/op01-ocvs-workload-extension/oci-credentials.tfvars.json \
-var-file ../terraform-oci-open-lz/commons/content/oci-credentials.tfvars.json \
-var-file ../terraform-oci-open-lz/workload-extensions/oci-lz-ext-ocvs/op01-ocvs-workload-extension/oci_open_lz_one-oe_identity.auto.tfvars.json \
-var-file ../terraform-oci-open-lz/workload-extensions/oci-lz-ext-ocvs/op01-ocvs-workload-extension/oci_open_lz_one-oe_network.auto.tfvars.json
```
Expand Down

This file was deleted.

0 comments on commit 8e9169d

Please sign in to comment.