Skip to content

Commit ff5e3fa

Browse files
committed
use root_compartment_id instead of tenancy_id in dynamic group
1 parent 3e21831 commit ff5e3fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ons.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ resource "oci_ons_subscription" "bastion_notification" {
2525
resource "oci_identity_dynamic_group" "bastion_notification" {
2626
provider = oci.home
2727

28-
compartment_id = var.tenancy_id
28+
compartment_id = var.root_compartment_id
2929
depends_on = [oci_core_instance.bastion]
3030
description = "dynamic group to allow bastion to send notifications to ONS"
3131
matching_rule = "ALL {instance.id = '${join(",", data.oci_core_instance.bastion.*.id)}'}"

0 commit comments

Comments
 (0)