Dataproc Shared VPC Access
This module grants IAM permissions on host project and subnets for dataproc.
module "dataproc_shared_vpc_access" {
source = " terraform-google-modules/shared-vpc-access/google//modules/dataproc"
host_project_id = var. shared_vpc
service_project_id = var. service_project
shared_vpc_subnets = [
" projects/pf-ci-shared2/regions/us-west1/subnetworks/shared-network-subnet-01" ,
" projects/pf-ci-shared2/regions/us-west1/subnetworks/shared-network-subnet-02" ,
]
}
Name
Description
Type
Default
Required
host_project_id
The ID of the host project which hosts the shared VPC
string
n/a
yes
service_project_id
The ID of the service project
string
n/a
yes
shared_vpc_subnets
List of subnets fully qualified subnet IDs (ie. projects/$project_id/regions/$region/subnetworks/$subnet_id)
list(string)
<list>
no
Name
Description
host_project_id
Host project ID.
service_project_id
Service project ID.
service_project_number
Service Project Number
shared_vpc_subnets
Shared VPC Subnets