You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

dynamic group can not be created by terraform

13
Views
2
Comments

Summary:

I can create dynamic group on oci console.

however it can not be created by terraform. 

Content (required):

I can create dynamic group on oci console.  

oci console -> identity -> select my compartment -> domain -> dynamic group

I have permission of only one compartment(not tenancy).

however when I try to create it by terraform, 

resource "oci_identity_dynamic_group" "test_dynamic_group" {
    compartment_id = "my compartment ocid"
    description = var.dynamic_group_description
    matching_rule = var.dynamic_group_matching_rule
    name = var.dynamic_group_name
}

following error appears.

│ Error: 400-InvalidParameter, Dynamic group can only be created in the tenancy compartment

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!