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
+4-1
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,9 @@ locals {
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
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
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
+
# These policy statements are required to register Compute instances with the OS Management service
19
+
osms_policy_statement1="Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to read instance-family in compartment id ${var.compartment_id}"
20
+
osms_policy_statement2="Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to use osms-managed-instances in compartment id ${var.compartment_id}"
18
21
# This policy with "inspect virtual-network-family" verb is needed to read VCN information like CIDR, etc, for VCN validation
19
22
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
23
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}'"
@@ -35,7 +38,7 @@ locals {
35
38
apm_domain_policy_statement=var.use_apm_service?"Allow dynamic-group ${oci_identity_dynamic_group.wlsc_instance_principal_group.name} to use apm-domains in compartment id ${var.apm_domain_compartment_id}":""
36
39
# This policy with "use load_balancer" verb is needed to create load balancer for new vcn
37
40
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}":"":""
0 commit comments