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
Tagged:
0