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
Copy file name to clipboardExpand all lines: terraform/modules/policies/locals.tf
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,15 @@ locals {
13
13
14
14
# This policy with "use instances" verb is needed because there is code in the WebLogic for OCI compute image that updates metadata of the compute instance, when more than one VM nodes are created
15
15
core_policy_statement1="Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to use instances in compartment id ${var.compartment_id}"
16
-
core_policy_statement2="Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to inspect volumes in compartment id ${var.compartment_id}"
17
-
core_policy_statement3="Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to inspect volume-attachments in compartment id ${var.compartment_id}"
16
+
core_policy_statement2="Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to manage volumes in compartment id ${var.compartment_id}"
17
+
core_policy_statement3="Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to manage volume-attachments in compartment id ${var.compartment_id}"
18
18
# This policy with "inspect virtual-network-family" verb is needed to read VCN information like CIDR, etc, for VCN validation
19
19
network_policy_statement1=var.network_compartment_id!=""?"Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to inspect virtual-network-family in compartment id ${var.network_compartment_id}":""
20
20
secrets_policy_statement1="Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to read secret-bundles in tenancy where target.secret.id = '${var.wls_admin_password_id}'"
21
21
secrets_policy_statement2=(var.is_idcs_selected&& var.idcs_client_secret_id!="") ?"Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to read secret-bundles in tenancy where target.secret.id = '${var.idcs_client_secret_id}'":""
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
-
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}":""
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
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
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'":""
27
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}'":""
@@ -36,7 +36,10 @@ locals {
36
36
# This policy with "use load_balancer" verb is needed to create load balancer for new vcn
37
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}"
42
45
cloning_policy_statement2="Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to inspect compartments in tenancy"
existing_lb_subnet_1_not_in_existing_vcn_of_stack_msg="WLSC-ERROR: The load balancer [${var.existing_load_balancer_id}] subnet_1 [${var.existing_lb_subnet_1_id}] is not in the the existing vcn [${var.existing_vcn_id}] for the stack"
# set to true if lb subnet_2 is present in the list of subnet for the existing vcn of the stack, or if is empty (for regional lb), or if not using existing load balancer
existing_lb_subnet_2_not_in_existing_vcn_of_stack_msg="WLSC-ERROR: The load balancer [${var.existing_load_balancer_id}] subnet_2 [${var.existing_lb_subnet_2_id}] is not in the the existing vcn [${var.existing_vcn_id}] for the stack"
23
+
existing_lb_subnet_2_not_in_existing_vcn_of_stack_msg="WLSC-ERROR: The load balancer [${var.existing_load_balancer_id}] subnet_2 [${var.existing_lb_subnet_2_id}] is not in the existing vcn [${var.existing_vcn_id}] for the stack"
Copy file name to clipboardExpand all lines: terraform/schema.yaml
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1177,12 +1177,11 @@ variables:
1177
1177
- eq:
1178
1178
- ${load_balancer_strategy_existing_subnet}
1179
1179
- "Use Existing Load Balancer"
1180
-
type: oci:loadbalancer:loadbalancer:id
1180
+
type: string
1181
+
pattern: ^ocid1.loadbalancer.*$
1181
1182
title: Existing Load Balancer ID
1182
1183
description: The OCID of the existing load balancer. If you use an existing load balancer, the WebLogic Server nodes are added to the backend set of the existing load balancer.
Copy file name to clipboardExpand all lines: terraform/schema_14110.yaml
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1186,12 +1186,11 @@ variables:
1186
1186
- eq:
1187
1187
- ${load_balancer_strategy_existing_subnet}
1188
1188
- "Use Existing Load Balancer"
1189
-
type: oci:loadbalancer:loadbalancer:id
1189
+
type: string
1190
+
pattern: ^ocid1.loadbalancer.*$
1190
1191
title: Existing Load Balancer ID
1191
1192
description: The OCID of the existing load balancer. If you use an existing load balancer, the WebLogic Server nodes are added to the backend set of the existing load balancer.
0 commit comments