<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic GCP Workspace Provisioning: Subnet IAM Permission Errors with Terraform in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/gcp-workspace-provisioning-subnet-iam-permission-errors-with/m-p/178411#M57540</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm provisioning a Databricks workspace on GCP using Terraform with the &lt;/SPAN&gt;&lt;SPAN&gt;databricks_mws_workspaces&lt;/SPAN&gt;&lt;SPAN&gt; resource and an existing customer-managed VPC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;During workspace provisioning, I'm encountering the following permission errors:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;compute.subnetworks.getIamPolicy&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;compute.subnetworks.setIamPolicy&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;iam.roles.get&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Current understanding of the issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Databricks uses &lt;/SPAN&gt;&lt;SPAN&gt;compute.subnetworks.setIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; to grant its workspace service account permission to use the workspace subnet during workspace provisioning.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My understanding is that the following permissions are required:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;compute.subnetworks.getIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;compute.subnetworks.setIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; on the Databricks workspace subnets only.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;roles/iam.roleViewer&lt;/SPAN&gt;&lt;SPAN&gt; on the host project to provide the &lt;/SPAN&gt;&lt;SPAN&gt;iam.roles.get&lt;/SPAN&gt;&lt;SPAN&gt; permission.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;The proposed approach is to grant these permissions to &lt;FONT face="DM Mono, Consolas, monospace" color="#c7254e"&gt;&lt;SPAN&gt;deployment service account&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;only on the Databricks subnets:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;europe-west1-data-platform-databricks-ws1&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;europe-west1-data-platform-databricks-ws2&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;europe-west1-data-platform-databricks-ws3&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;europe-west1-data-platform-databricks-ws4&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;europe-west1-data-platform-databricks-ws5&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;This would follow a least-privilege approach, restricting subnet IAM policy management to the specific Databricks subnets rather than granting broad permissions at the host project level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I'm currently unable to obtain &lt;/SPAN&gt;&lt;SPAN&gt;compute.subnetworks.setIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; permission from the Cloud/Network team due to their IAM restrictions.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Alternative approach under consideration: Least-Privilege Workspace&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;I'm considering moving from the current &lt;/SPAN&gt;&lt;SPAN&gt;databricks_mws_workspaces&lt;/SPAN&gt;&lt;SPAN&gt; Terraform-based provisioning approach to Databricks' GCP Least-Privilege Workspace creation workflow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My understanding is that this approach separates workspace creation permissions from the permissions required by the workspace service account and allows network permissions to be provisioned separately.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Questions&lt;/SPAN&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is granting &lt;/SPAN&gt;&lt;SPAN&gt;compute.subnetworks.getIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;compute.subnetworks.setIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; at the individual subnet level, along with &lt;/SPAN&gt;&lt;SPAN&gt;roles/iam.roleViewer&lt;/SPAN&gt;&lt;SPAN&gt; at the host-project level, the correct and recommended approach for the existing &lt;/SPAN&gt;&lt;SPAN&gt;databricks_mws_workspaces&lt;/SPAN&gt;&lt;SPAN&gt; Terraform workflow?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Can these permissions be restricted to individual subnets using a custom IAM role, without requiring broader Compute Network Admin or Project IAM Admin permissions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Would migrating to the GCP Least-Privilege Workspace workflow eliminate the need for the workspace deployment service account to have &lt;/SPAN&gt;&lt;SPAN&gt;compute.subnetworks.setIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; permission?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;In the Least-Privilege Workspace approach, can the Cloud/Network team pre-provision the required subnet IAM bindings for the Databricks workspace service account, while the Databricks team retains responsibility for workspace provisioning?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Are there any limitations or differences in using an existing customer-managed VPC with the Least-Privilege Workspace workflow compared with the traditional &lt;/SPAN&gt;&lt;SPAN&gt;databricks_mws_workspaces&lt;/SPAN&gt;&lt;SPAN&gt; approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;I'd appreciate guidance from anyone who has implemented GCP Databricks workspace provisioning with strict IAM separation and least-privilege access.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2026 07:15:41 GMT</pubDate>
    <dc:creator>architgupta007</dc:creator>
    <dc:date>2026-12-02T07:15:41Z</dc:date>
    <item>
      <title>GCP Workspace Provisioning: Subnet IAM Permission Errors with Terraform</title>
      <link>https://community.databricks.com/t5/data-engineering/gcp-workspace-provisioning-subnet-iam-permission-errors-with/m-p/178411#M57540</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm provisioning a Databricks workspace on GCP using Terraform with the &lt;/SPAN&gt;&lt;SPAN&gt;databricks_mws_workspaces&lt;/SPAN&gt;&lt;SPAN&gt; resource and an existing customer-managed VPC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;During workspace provisioning, I'm encountering the following permission errors:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;compute.subnetworks.getIamPolicy&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;compute.subnetworks.setIamPolicy&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;iam.roles.get&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Current understanding of the issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Databricks uses &lt;/SPAN&gt;&lt;SPAN&gt;compute.subnetworks.setIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; to grant its workspace service account permission to use the workspace subnet during workspace provisioning.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My understanding is that the following permissions are required:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;compute.subnetworks.getIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;compute.subnetworks.setIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; on the Databricks workspace subnets only.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;roles/iam.roleViewer&lt;/SPAN&gt;&lt;SPAN&gt; on the host project to provide the &lt;/SPAN&gt;&lt;SPAN&gt;iam.roles.get&lt;/SPAN&gt;&lt;SPAN&gt; permission.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;The proposed approach is to grant these permissions to &lt;FONT face="DM Mono, Consolas, monospace" color="#c7254e"&gt;&lt;SPAN&gt;deployment service account&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;only on the Databricks subnets:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;europe-west1-data-platform-databricks-ws1&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;europe-west1-data-platform-databricks-ws2&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;europe-west1-data-platform-databricks-ws3&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;europe-west1-data-platform-databricks-ws4&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;europe-west1-data-platform-databricks-ws5&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;This would follow a least-privilege approach, restricting subnet IAM policy management to the specific Databricks subnets rather than granting broad permissions at the host project level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I'm currently unable to obtain &lt;/SPAN&gt;&lt;SPAN&gt;compute.subnetworks.setIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; permission from the Cloud/Network team due to their IAM restrictions.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Alternative approach under consideration: Least-Privilege Workspace&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;I'm considering moving from the current &lt;/SPAN&gt;&lt;SPAN&gt;databricks_mws_workspaces&lt;/SPAN&gt;&lt;SPAN&gt; Terraform-based provisioning approach to Databricks' GCP Least-Privilege Workspace creation workflow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My understanding is that this approach separates workspace creation permissions from the permissions required by the workspace service account and allows network permissions to be provisioned separately.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Questions&lt;/SPAN&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is granting &lt;/SPAN&gt;&lt;SPAN&gt;compute.subnetworks.getIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;compute.subnetworks.setIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; at the individual subnet level, along with &lt;/SPAN&gt;&lt;SPAN&gt;roles/iam.roleViewer&lt;/SPAN&gt;&lt;SPAN&gt; at the host-project level, the correct and recommended approach for the existing &lt;/SPAN&gt;&lt;SPAN&gt;databricks_mws_workspaces&lt;/SPAN&gt;&lt;SPAN&gt; Terraform workflow?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Can these permissions be restricted to individual subnets using a custom IAM role, without requiring broader Compute Network Admin or Project IAM Admin permissions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Would migrating to the GCP Least-Privilege Workspace workflow eliminate the need for the workspace deployment service account to have &lt;/SPAN&gt;&lt;SPAN&gt;compute.subnetworks.setIamPolicy&lt;/SPAN&gt;&lt;SPAN&gt; permission?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;In the Least-Privilege Workspace approach, can the Cloud/Network team pre-provision the required subnet IAM bindings for the Databricks workspace service account, while the Databricks team retains responsibility for workspace provisioning?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Are there any limitations or differences in using an existing customer-managed VPC with the Least-Privilege Workspace workflow compared with the traditional &lt;/SPAN&gt;&lt;SPAN&gt;databricks_mws_workspaces&lt;/SPAN&gt;&lt;SPAN&gt; approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;I'd appreciate guidance from anyone who has implemented GCP Databricks workspace provisioning with strict IAM separation and least-privilege access.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2026 07:15:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/gcp-workspace-provisioning-subnet-iam-permission-errors-with/m-p/178411#M57540</guid>
      <dc:creator>architgupta007</dc:creator>
      <dc:date>2026-12-02T07:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: GCP Workspace Provisioning: Subnet IAM Permission Errors with Terraform</title>
      <link>https://community.databricks.com/t5/data-engineering/gcp-workspace-provisioning-subnet-iam-permission-errors-with/m-p/178445#M57544</link>
      <description>&lt;P&gt;In the standard databricks_mws_workspaces flow, granting setIamPolicy on the subnets won't be enough on its own. The least-privilege workspace (LPW) flow does remove the need for that permission.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why the standard flow keeps failing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the standard flow, Databricks uses the creator's credentials to create a custom Network role in the VPC (host) project and bind it to the subnet. The &lt;A href="https://docs.databricks.com/gcp/en/admin/cloud-configurations/gcp/permissions" target="_blank" rel="noopener"&gt;workspace creation permissions doc&lt;/A&gt; lists what the creator needs on the VPC project: - compute.subnetworks.get/getIamPolicy/setIamPolicy - iam.roles.create/get/update - compute.firewalls.get/create/update and compute.networks.updatePolicy&lt;/P&gt;&lt;P&gt;roles/iam.roleViewer only gives you iam.roles.get, so you'd hit the next error right away. You can put the subnet IAM permissions in a custom role and bind it at the subnet level. The iam.roles.* and firewall permissions are project-level, though, so you still need host-project grants. Databricks recommends roles/owner on both projects for this flow.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Least-privilege workspace&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the &lt;A href="https://docs.databricks.com/gcp/en/admin/workspace/create-least-privilege-workspace" target="_blank" rel="noopener"&gt;LPW flow&lt;/A&gt;, the creator's host-project role is read-only. It includes compute.subnetworks.getIamPolicy and iam.roles.get, but not setIamPolicy. Instead, your network team:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Creates lpw.databricks.network.role.v2 in the host project (the permissions are listed in the docs).&lt;/LI&gt;&lt;LI&gt;Pre-creates the firewall rule: INGRESS, priority 65534, source set to the subnet range, all protocols allowed.&lt;/LI&gt;&lt;LI&gt;After the workspace is created and returns workspace_service_account, binds the role on each subnet:&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;gcloud compute networks subnets add-iam-policy-binding europe-west1-data-platform-databricks-ws1 \
  --project=&amp;lt;host-project-id&amp;gt; --region=europe-west1 \
  --member="serviceAccount:&amp;lt;workspace_service_account&amp;gt;" \
  --role="projects/&amp;lt;host-project-id&amp;gt;/roles/lpw.databricks.network.role.v2"&lt;/PRE&gt;&lt;P&gt;The docs describe LPW through the Account API, so check whether your Terraform provider version supports it before you switch.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2026 10:53:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/gcp-workspace-provisioning-subnet-iam-permission-errors-with/m-p/178445#M57544</guid>
      <dc:creator>arthurfr23</dc:creator>
      <dc:date>2026-12-02T10:53:26Z</dc:date>
    </item>
  </channel>
</rss>

