Variables in Terraform Scripts
The variables you need input to the terraform scripts in Oracle WebLogic Server for OKE.
Note:
If you are using Oracle WebLogic Server for OKE (Release 21.3.3 or later), see Terraform Scripts in Oracle WebLogic Server for OKE.The following table lists all the variables in terraform scripts:
Table 1-1 Variables in terraform scripts
Variables | Type | Default Value | Optional | Can be updated? | Description |
---|---|---|---|---|---|
Authentication Information Note: Use |
- | - | - | - | - |
|
String | - | - | Yes | Fingerprint of the OCI API private key. |
|
String | - | - | - | Path to the private key that matches the fingerprint. |
|
String | - | - | - | OCID of the tenancy in which you want to perform changes. |
|
String | - | - | - | OCID of the signed in user. That is, your OCID. |
WebLogic Server Variables |
- | - | - | - | - |
|
String | - | - | - | OCID of the compartment for WebLogic instances. |
|
String | - | - | - | Region for provisioning. |
|
String | - | - | - | Prefix for stack resources. The names of all the related compute and network resources begins with the prefix you assign here. |
|
String | - | - | - | Content of public key for access. |
|
String | - | - | - | OCID of the Secret that contains the password for the administrator in the WebLogic Server domain. |
|
String | weblogic |
Yes | - | Name of the administrator in the WebLogic Server domain. |
General |
- | - | - | - | - |
|
Boolean | true |
Yes | - | Create policies to read Secrets from Vault and manage ATP database (if applicable). |
Container Cluster (OKE) Configuration |
- | - | - | - | - |
|
String | - | - | - | Existing cluster ID value. |
|
String | Latest Kubernetes version is displayed by default. | Yes | - | Kubernetes version. |
|
String | 1 |
- | Yes |
Count of the non-WLS node pool. Note: If you update the node pool count, then the node pool is recreated. If you scale the compute instance and the WebLogic server Operator does not connect to the WebLogic server Persistence store, see Scaling Compute Instances. |
|
String | VM.Standard2.1 |
- | Yes | Shape of the non-WLS node pool. |
|
String | - | Yes | - | CIDR value of the OKE pod. |
|
String | - | Yes | - | CIDR value of the services. |
|
String | 1 |
- | Yes | Count of the WLS node pool. |
|
String | VM.Standard2.1 |
- | Yes | Shape of the WLS node pool. |
Container Cluster (OKE) Administration Instances |
- | - | - | - | - |
|
String | - | - | - | Name of the availability domain for the administrator instance. |
|
String | VM.Standard.E2.1 |
- | - | Shape for administrator instance. |
|
String | VM.Standard.E2.1 |
- | - | Shape for bastion instance. |
Network Variables |
- | - | - | - | - |
|
String | - | - | - | OCID of an existing VCN where you want to create the compute instances, network resources, and load balancers. |
|
String | - | - | - | OCID of an existing load balancer subnets. |
|
String | - | - | - | OCID for an existing bastion subnet. |
|
String | - | - | - | OCID for an OKE worker node subnet. |
|
String | - | - | - | OCID for an existing administrator subnet. |
|
String | - | - | - | OCID for an existing FSS subnet. |
|
String | - | Yes | - |
OCID for an existing NAT gateway. Note: You need to specify either the NAT gateway ( |
|
String | - | Yes | - |
OCID for an existing service gateway. Note: You need to specify either the NAT gateway ( |
|
Boolean | true |
Yes | - | Creates bastion for the stack.
If |
Load Balancer Variables |
- | - | - | - | - |
|
String | flexible |
- | - | Shape of the public load balancer. |
|
String | flexible |
- | - | Shape of the ingress load balancer. |
Shared File System Variables |
- | - | - | - | - |
|
String | - | - | - | OCID of the availability domain for Shared File System. |
|
String | - | Yes | - | OCID for the mount target. |
|
String | - | Yes | - | OCID of the compartment for the mount target.
This variable is required if |
OCIR Variables |
- | - | |||
|
String | - | - | - | OCIR user name. |
|
String | - | - | - | OCID token for the OCIR user name. |
IDCS-related Variables |
- | - | - | - | - |
|
String | - | - | - | IDCS client ID value. |
|
String | - | - | - | IDCS client secret OCID value. |
|
Number | 9999 |
Yes | - | IDCS cloud gate port value. |
|
String | identity.oraclecloud.com |
Yes | - | IDCS host value. |
|
Number | 443 |
Yes | - | IDCS port value. |
|
String | - | - | - | IDCS tenant value. |
|
Boolean | false |
Yes | - | If you want an IDCS has to be provisioned. |
OCI Database Variables |
- | - | - | - | - |
|
String | - | - | - |
OCID of the OCI database compartment. |
|
String | - | - | - |
OCID of the OCI database system. |
|
String | - | - | - |
OCID of the OCI database. |
|
String | - | - | - | PDB name of the OCI database. |
|
String | sys |
Yes | - | OCI database username |
|
String | - | - | - | OCID of the OCI database password. |
ATP Database Variables |
- | - | |||
|
String | - | - | - | OCID of the ATP database compartment. |
|
String | - | - | - | OCID of the ATP database. |
|
String | - | - | - | ATP database level value. |
|
String | - | - | - | OCID of the ATP database password. |
Note:
Support for existing bastion host to be used in provisioning WebLogic server with private subnet is enabled in terraform CLI only. This can be achieved by using the varaibles:is_bastion_instance_required
, existing_bastion_instance_id
, and bastion_ssh_private_key
. For existing WebLogic server subnet, you will need to open port 22
for bastion IP/subnet CIDR. For a new WebLogic server subnet we create security list with bastion private IP.