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
#This variable is used for both oci db and ATP with private subnet
162
-
#NOTE: this has not been renamed to support future cloning support
163
-
variable"ocidb_existing_vcn_add_seclist" {
161
+
#This variable is used for both OCI database and ATP database with private endpoint
162
+
variable"db_existing_vcn_add_secrule" {
164
163
type=bool
165
-
description="Set to true to add a security list to the database subnet (for OCI DB) when using existing VCN or network security group (for ATP with private endpoint) that allows connections from the WebLogic Server subnet"
164
+
description="Set to true to add a security list to the database subnet (for OCI DB) or a security rule to the network security group (for ATP with private endpoint) that allows connections from the WebLogic Server subnet"
Copy file name to clipboardExpand all lines: terraform/modules/compute/wls_compute/db_variables.tf
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -68,5 +68,5 @@ variable "jrf_parameters" {
68
68
//Add security list to existing db vcn
69
69
variable"db_existing_vcn_add_seclist" {
70
70
type=bool
71
-
description="Set to true to add a security list to the database subnet (for OCI DB) when using existing VCN or network security group (for ATP with private endpoint) that allows connections from the WebLogic Server subnet"
71
+
description="Set to true to add a security list to the database subnet (for OCI DB) or a security rule to the network security group (for ATP with private endpoint) that allows connections from the WebLogic Server subnet"
Copy file name to clipboardExpand all lines: terraform/modules/policies/locals.tf
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ locals {
22
22
atp_policy_statement1=(var.atp_db.is_atp&& var.atp_db.password_id!="") ?"Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to read secret-bundles in tenancy where target.secret.id = '${var.atp_db.password_id}'":""
23
23
# This policy with "use autonomous-transaction-processing-family" verb is needed to download ATP db wallet
24
24
atp_policy_statement2=(var.atp_db.is_atp&& var.atp_db.compartment_id!="") ?"Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to use autonomous-transaction-processing-family in compartment id ${var.atp_db.compartment_id}":""
25
+
# This policy with "manage network-security-groups" verb is needed to add security rule in the ATP db (with private endpoint) NSG in the ATP db VCN
26
+
atp_policy_statement3=(var.atp_db.is_atp_with_private_endpoints&& var.atp_db.existing_vcn_add_seclist&& var.atp_db.network_compartment_id!="") ?"Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to manage network-security-groups in compartment id ${var.atp_db.network_compartment_id} where request.operation = 'AddNetworkSecurityGroupSecurityRules'":""
25
27
oci_db_policy_statement1=var.oci_db.password_id!=""?"Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to read secret-bundles in tenancy where target.secret.id = '${var.oci_db.password_id}'":""
26
28
# This policy with "inspect virtual-network-family" verb is needed to read OCI DB VCN information like CIDR, etc, for VCN validation
27
29
oci_db_policy_statement2=(var.oci_db.network_compartment_id!=""&& var.oci_db.existing_vcn_id!= local.network_vcn_id) ?"Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to inspect virtual-network-family in compartment id ${var.oci_db.network_compartment_id} where target.vcn.id = '${var.oci_db.existing_vcn_id}'":""
@@ -34,7 +36,7 @@ locals {
34
36
# This policy with "use load_balancer" verb is needed to create load balancer for new vcn
35
37
lb_policy_statement=var.add_load_balancer?length(oci_identity_dynamic_group.wlsc_instance_principal_group) >0?"Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to use load-balancers in compartment id ${var.network_compartment_id}":"":""
cloning_policy_statement1="Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to read orm-stacks in compartment id ${var.compartment_id}"
40
42
cloning_policy_statement2="Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to inspect compartments in tenancy"
is_atp: "Indicates if an ATP database is used to store the schemas of a JRF WebLogic domain"
107
-
compartment_id: "The OCID of the compartment where the ATP database is located"
108
111
password_id: "The OCID of the vault secret with the password of the database"
112
+
compartment_id: "The OCID of the compartment where the ATP database is located"
113
+
is_atp_with_private_endpoints: "Indicates if the ATP database uses private endpoint for network access"
114
+
network_compartment_id: "The OCID of the compartment in which the ATP database private endpoint VCN is found"
115
+
existing_vcn_id: "The OCID of the VCN used by the ATP database private endpoint"
116
+
existing_vcn_add_seclist: "Set to true to add a security list to the network security group (for ATP with private endpoint) that allows connections from the WebLogic Server subnet"
109
117
}
110
118
EOT
111
119
}
@@ -127,7 +135,7 @@ variable "oci_db" {
127
135
compartment_id: "The OCID of the compartment where the OCI database is located"
128
136
network_compartment_id: "The OCID of the compartment in which the DB System VCN is found"
129
137
existing_vcn_id: "The OCID of the DB system VCN"
130
-
existing_vcn_add_seclist: "Set to true to add a security list to the database subnet (for OCI DB) when using existing VCN that allows connections from the WebLogic Server subnet"
138
+
existing_vcn_add_seclist: "Set to true to add a security list to the database subnet (for OCI DB) that allows connections from the WebLogic Server subnet"
Copy file name to clipboardExpand all lines: terraform/schema.yaml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ groupings:
63
63
- ${oci_db_secret_compartment_id}
64
64
- ${oci_db_password_id}
65
65
- ${oci_db_port}
66
-
- ${ocidb_existing_vcn_add_seclist}
66
+
- ${db_existing_vcn_add_secrule}
67
67
- ${db_vcn_lpg_id}
68
68
#End of JRF fields
69
69
- ${deploy_sample_app}
@@ -1636,7 +1636,7 @@ variables:
1636
1636
description: The compartment in which the DB System Virtual Cloud Network is found.
1637
1637
default: ${compartment_ocid}
1638
1638
1639
-
ocidb_existing_vcn_add_seclist:
1639
+
db_existing_vcn_add_secrule:
1640
1640
visible:
1641
1641
and:
1642
1642
- ${orm_create_mode}
@@ -1650,7 +1650,7 @@ variables:
1650
1650
type: boolean
1651
1651
default: true
1652
1652
title: Create Database Security List
1653
-
description: Add a security list to the DB subnet or Network Security Group for ATP Database with private endpoint that allows connections from the WebLogic Server subnet
1653
+
description: Add a security list to the DB subnet or a security rule to the Network Security Group for ATP Database with private endpoint that allows connections from the WebLogic Server subnet
0 commit comments