|
15 | 15 | :uri-oci-okepolicy: https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengpolicyconfig.htm#PolicyPrerequisitesService |
16 | 16 | :uri-oci-provider: https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm |
17 | 17 | :uri-oci-provider-precedence: https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm#terraformproviderconfiguration_topic-Order_of_Precedence |
| 18 | +:uri-provider-example: {uri-rel-file-base}/provider.tf.example |
18 | 19 | :uri-terraform: https://www.terraform.io |
19 | 20 | :uri-terraform-oci: https://www.terraform.io/docs/providers/oci/index.html |
20 | 21 | :uri-terraform-options: {uri-docs}/terraformoptions.adoc |
@@ -52,46 +53,11 @@ You need to create 2 providers: |
52 | 53 | .. 1 provider for the region where your OKE cluster and other resources will be created |
53 | 54 | .. 1 provider for the home region. This is required for conducting identity operations. *Note that your home region may not necessarily be the same as your current region.* |
54 | 55 |
|
55 | | -. Create a provider.tf file in root add 2 providers: |
56 | | -+ |
57 | | ----- |
58 | | -provider "oci" { |
59 | | - fingerprint = var.api_fingerprint |
60 | | - private_key_path = var.api_private_key_path |
61 | | - region = var.region |
62 | | - tenancy_ocid = var.tenancy_id |
63 | | - user_ocid = var.user_id |
64 | | -} |
65 | | -
|
66 | | -provider "oci" { |
67 | | - fingerprint = var.api_fingerprint |
68 | | - private_key_path = var.api_private_key_path |
69 | | - region = var.home_region |
70 | | - tenancy_ocid = var.tenancy_id |
71 | | - user_ocid = var.user_id |
72 | | - alias = "home" |
73 | | -} |
74 | | ----- |
75 | | - |
76 | | -. Alternatively, you can also specify the key directly: |
| 56 | +. Create a provider.tf file in root with 2 providers. An {uri-provider-example}[example] is provided for convenience: |
77 | 57 | + |
| 58 | +[source,bash] |
78 | 59 | ---- |
79 | | -provider "oci" { |
80 | | - fingerprint = var.api_fingerprint |
81 | | - private_key = var.api_private_key |
82 | | - region = var.regions["oke"] |
83 | | - tenancy_ocid = var.tenancy_id |
84 | | - user_ocid = var.user_id |
85 | | -} |
86 | | -
|
87 | | -provider "oci" { |
88 | | - fingerprint = var.api_fingerprint |
89 | | - private_key = var.api_private_key |
90 | | - region = var.regions["home"] |
91 | | - tenancy_ocid = var.tenancy_id |
92 | | - user_ocid = var.user_id |
93 | | - alias = "home" |
94 | | -} |
| 60 | +cp provider.tf.example provider.tf |
95 | 61 | ---- |
96 | 62 |
|
97 | 63 | . You can also create use providers ({uri-oci-provider}[using differerent methods]) such as: |
|
0 commit comments