mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-08 11:41:05 +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
1.3 KiB
1.3 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
Google: google_compute_shared_vpc_host_project | docs-google-compute-shared-vpc-host-project | 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 and API.
Example Usage
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.