Open ajdurr opened 4 months ago
Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.
Hi,ajdurr
try to change "user_id = each.value.users[0].id", can return a ocid User.
Terraform Configuration Files: resource "oci_identity_user_group_membership" "group_membership" { for_each = { for idx, user in data.oci_identity_users.users : idx => user }
group_id = oci_identity_group.group.id
user_id = each.value.users[0].id
}
Community Note
Terraform Version and Provider Version
Terraform v1.8.0 on windows_amd64
Affected Resource(s)
affected_data_source = oci_identity_users
Terraform Configuration Files
Plan snippit output
Expected Behavior
Return a ocid User
Actual Behavior
Returns a bogus ID "IdentityUsersDataSource-1829913042"
Steps to Reproduce
terraform apply
References
https://github.com/oracle/oci-go-sdk/blob/master/identity/list_users_request_response.go
https://github.com/oracle/terraform-provider-oci/blob/master/internal/service/identity/identity_users_data_source.go
https://docs.oracle.com/en-us/iaas/tools/dotnet/89.2.0/api/Oci.IdentityService.Requests.ListUsersRequest.html
https://discuss.hashicorp.com/t/hi-i-need-to-get-data-source-for-oci-identity-user/53872