Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Dataproc Shared VPC Access

This module grants IAM permissions on host project and subnets for dataproc.

Example Usage

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",
  ]
}

Inputs

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

Outputs

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