This example illustrates how to create a Shared VPC host project.
It includes creating the host project and using the network module to create network.
It then attaches two new service projects to the host project.
Name | Description | Type | Default | Required |
---|---|---|---|---|
billing_account | The ID of the billing account to associate this project with | any |
n/a | yes |
default_network_tier | Default Network Service Tier for resources created in this project. If unset, the value will not be modified. See https://cloud.google.com/network-tiers/docs/using-network-service-tiers and https://cloud.google.com/network-tiers. | string |
"" |
no |
folder_id | The folder to create projects in | any |
n/a | yes |
host_project_name | Name for Shared VPC host project | string |
"shared-vpc-host" |
no |
network_name | Name for Shared VPC network | string |
"shared-network" |
no |
organization_id | The organization id for the associated services | any |
n/a | yes |
service_project_name | Name for Shared VPC service project | string |
"shared-vpc-service" |
no |
Name | Description |
---|---|
host_project | The full host project info |
host_project_id | The ID of the created project |
network_name | The name of the VPC being created |
network_self_link | The URI of the VPC being created |
service_project | The service project info |
service_project_b | The second service project |
service_project_c | The third service project |
subnets | The shared VPC subets |
vpc | The network info |