How to grant access to an existing bigquery dataset


I want to grant access to an existing dataset which was created earlier to a service account. I’ve tried using
“google_bigquery_dataset_iam_binding” by supplying it with the appropriate dataset_id but it came back with

The provider does not support resource type “google_bigquery_dataset_iam_binding”.

Note that this dataset has already been defined in a different file. Do I have to redefine it in my file using ,

“google_bigquery_dataset” and then granting access to it? I fear it may rewrite the existing one.