terraform-provider-google/website/docs/r/compute_shared_vpc.html.markdown
Dana Hoffman 2d733a1600 Add new google_compute_shared_vpc resource (#396)
* 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
2017-09-13 10:36:07 +08:00

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.