You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ssh_private_key_path (Required if bastion is enabled)
83
+
* ssh_public_key_path (Required if bastion is enabled)
84
+
* vcn_dns_label
85
+
* vcn_name
69
86
* worker_mode
70
87
88
+
. Run Terraform:
89
+
90
+
+
91
+
[source,bash]
92
+
----
93
+
terraform init
94
+
terraform plan
95
+
terraform apply
96
+
----
97
+
98
+
=== Provisioning using the Hashicorp registry module
99
+
100
+
. In your project root, create a provider.tf file and add the following:
101
+
102
+
+
103
+
----
104
+
provider "oci" {
105
+
tenancy_ocid = var.tenancy_id
106
+
user_ocid = var.user_id
107
+
fingerprint = var.api_fingerprint
108
+
private_key_path = var.api_private_key_path
109
+
region = var.region
110
+
disable_auto_retries = var.disable_auto_retries
111
+
}
112
+
----
113
+
114
+
. In your project root, create a variables.tf file and add variables for your project. You can copy the existing {uri-variables}[variables.tf] in the oke module root.
115
+
116
+
. In your project root, create a main.tf file and add the following:
117
+
118
+
+
119
+
----
120
+
module "oke" {
121
+
source = "oracle-terraform-modules/oke/oci"
122
+
version = "2.1.3"
123
+
# insert the 23 required variables here
124
+
}
125
+
----
126
+
127
+
. Edit your oke module definition and pass the required variables:
128
+
129
+
+
130
+
----
131
+
module "oke" {
132
+
source = "oracle-terraform-modules/oke/oci"
133
+
version = "2.1.3"
134
+
135
+
compartment_id = var.compartment_id
136
+
tenancy_id = var.tenancy_id
137
+
user_id = var.user_id
138
+
139
+
ssh_private_key_path = var.ssh_private_key_path
140
+
ssh_public_key_path = var.ssh_public_key_path
141
+
142
+
label_prefix = var.label_prefix
143
+
region = var.region
144
+
145
+
vcn_dns_label = var.vcn_dns_label
146
+
vcn_name = var.vcn_name
147
+
148
+
bastion_shape = var.bastion_shape
149
+
bastion_timezone = var.bastion_timezone
150
+
151
+
admin_shape = var.admin_shape
152
+
admin_timezone = var.admin_timezone
153
+
154
+
# add additional parameters for availability_domains, oke etc as you need
0 commit comments