Operation failed: Required 'compute.subnetworks.use' permission when creating Dataproc cluster

Viewed 882

I get this error when I try to create a dataproc cluster

failed: Required 'compute.subnetworks.use' permission for ...

1 Answers

For dataproc cluster creation, this error usually occurs due to missing IAM permission when using shared VPC.

To fix this issue, please go to your shared VPC host project (Where your VPC network is) and grant Compute Network User role to the following service accounts

  1. service-[cluster-project-number]@dataproc-accounts.iam.gserviceaccount.com
  2. the Google APIs service account, [cluster-project-number]@cloudservices.gserviceaccount.com

Note: The cluster-project-number is the project number associated with the service project (where your Dataproc cluster is provisioned).

Please check here for more information

Dataproc IAM requirements

Creating a Dataproc cluster: considerations, gotchas & resources

Troubleshoot Dataproc error messages

Related