Dataproc cluster underlying VMs using default service account

Viewed 128

I created a Dataproc cluster using a service account via a Terraform script. The cluster has 1 master and 2 workers, so three Compute Engine instances got created as a part of this cluster creations. My questions are-

  1. Why these VMs have default service accounts? Shouldn't they use the same service account that I used to create the dataproc cluster?

Edited: Removed one question as suggested in comment (as topic became too broad)

1 Answers

Here is how you can specify the service account used by the cluster VMs. If you are sure they still use the default service account, it might be a mistake in the Terraform script. You can test with gcloud without Terraform to confirm.

Related