terraform-provider-google/website/docs/r/compute_shared_vpc_service_project.html.markdown
Kit Ewbank b795a4563e Import google_compute_shared_vpc_host_project/google_compute_shared_vpc_service_project resources (#1004)
* Import google_compute_shared_vpc_host_project/google_compute_shared_vpc_service_project resources.

* Incorporate testing of resource import into main acceptance tests.
2018-01-24 12:54:42 -08:00

1.5 KiB

layout page_title sidebar_current description
google Google: google_compute_shared_vpc_service_project docs-google-compute-shared-vpc-service-project Enables the Google Compute Engine Shared VPC feature for a project, assigning it as a service project.

google_compute_shared_vpc_service_project

Enables the Google Compute Engine Shared VPC feature for a project, assigning it as a Shared VPC service project associated with a given host project.

For more information, see, the Project API documentation, where the Shared VPC feature is referred to by its former name "XPN".

Example Usage

resource "google_compute_shared_vpc_service_project" "service1" {
  host_project    = "host-project-id"
  service_project = "service-project-id-1"
}

For a complete Shared VPC example with both host and service projects, see google_compute_shared_vpc_host_project.

Argument Reference

The following arguments are expected:

  • host_project - (Required) The ID of a host project to associate.

  • service_project - (Required) The ID of the project that will serve as a Shared VPC service project.

Import

Google Compute Engine Shared VPC service project feature can be imported using the host_project and service_project, e.g.

$ terraform import google_compute_shared_vpc_service_project.service1 host-project-id/service-project-id-1