mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-18 17:19:58 +00:00
e5d9fe6163
* Add VPC host project resource * Add VPC service project resource * Add combined acceptance test for shared VPC * Add docs for shared VPC * Increase deadline for project services operation
43 lines
1.3 KiB
Markdown
43 lines
1.3 KiB
Markdown
---
|
|
layout: "google"
|
|
page_title: "Google: google_compute_shared_vpc_host_project"
|
|
sidebar_current: "docs-google-compute-shared-vpc-host-project"
|
|
description: |-
|
|
Allows enabling and disabling Shared VPC for the host Google Cloud Platform project.
|
|
---
|
|
|
|
# google\_compute\_shared\_vpc\_host\_project
|
|
|
|
Allows enabling and disabling Shared VPC for the host Google Cloud Platform project. For more information see
|
|
[the official documentation](https://cloud.google.com/compute/docs/shared-vpc)
|
|
and
|
|
[API](https://cloud.google.com/compute/docs/reference/latest/projects).
|
|
|
|
## Example Usage
|
|
|
|
```hcl
|
|
resource "google_compute_shared_vpc_host_project" "host" {
|
|
project = "your-host-project-id"
|
|
}
|
|
|
|
resource "google_compute_shared_vpc_service_project" "service1" {
|
|
project = "your-service-project-id-1"
|
|
// The host project must enable shared VPC first
|
|
depends_on = ["google_compute_shared_vpc_host_project.host"]
|
|
}
|
|
|
|
resource "google_compute_shared_vpc_service_project" "service2" {
|
|
project = "your-service-project-id-2"
|
|
// The host project must enable shared VPC first
|
|
depends_on = ["google_compute_shared_vpc_host_project.host"]
|
|
}
|
|
```
|
|
|
|
## Argument Reference
|
|
|
|
The following arguments are supported:
|
|
|
|
* `host_project` - (Required) The host project ID.
|
|
|
|
* `service_project` - (Required) The service project ID.
|