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

Unable to Import Existing OCI User Group Membership Resource Despite Correct OCID and Region

Summary:

Reference: 

Unable to import existing oci_identity_user_group_membership resources using the import block, even when providing accurate and verified membership OCIDs.

Resource Type: oci_identity_user_group_membership

Terraform Configuration

Resource Definition:

resource "oci_identity_user_group_membership" "example" {  user_id  = "ocid1.user.oc1..aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"  group_id = "ocid1.group.oc1..bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"}

Import Block:

import {  to = oci_identity_user_group_membership.example  id = "ocid1.groupmembership.oc1..cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"}

Expected Behavior
The import should succeed when providing a valid membership OCID as the import ID. The resource should be imported into the Terraform state with the corresponding user_id and 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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