mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-08 11:41:05 +00:00
2d733a1600
* Revendor compute apis * Add new resource for shared VPC host * add test for disabled * add docs for shared vpc host resource * make project required * Add new resource google_compute_shared_vpc * Remove google_compute_shared_vpc_host * Add docs for shared vpc resource * Remove docs for shared vpc host resource * fix typos in shared vpc docs * move helper fn to utils.go
34 lines
901 B
Markdown
34 lines
901 B
Markdown
---
|
|
layout: "google"
|
|
page_title: "Google: google_compute_shared_vpc"
|
|
sidebar_current: "docs-google-compute-shared-vpc"
|
|
description: |-
|
|
Allows setting up Shared VPC in a Google Cloud Platform project.
|
|
---
|
|
|
|
# google\_compute\_shared\_vpc
|
|
|
|
Allows setting up Shared VPC in a 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" "vpc" {
|
|
host_project = "your-project-id"
|
|
service_projects = ["service-project-1", "service-project-2"]
|
|
}
|
|
```
|
|
|
|
## Argument Reference
|
|
|
|
The following arguments are supported:
|
|
|
|
* `host_project` - (Required) The host project ID.
|
|
|
|
- - -
|
|
|
|
* `service_projects` - (Optional) List of IDs of service projects to enable as Shared VPC resources for this host.
|