terraform-provider-google/website/docs/r/google_project_service.html.markdown
Dana Hoffman 10e4f68441
Add new google_project_service resource for fine-grained service control. (#668)
* add new project service resource; add retry logic for enable/disable

* docs for google_project_service

* add project into the id
2017-11-07 15:19:57 -08:00

980 B

layout page_title sidebar_current description
google Google: google_project_service docs-google-project-service Allows management of a single API service for a Google Cloud Platform project.

google_project_service

Allows management of a single API service for an existing Google Cloud Platform project.

For a list of services available, visit the API library page or run gcloud service-management list.

~> Note: This resource must not be used in conjunction with google_project_services or they will fight over which services should be enabled.

Example Usage

resource "google_project_service" "project" {
  project = "your-project-id"
  service = "iam.googleapis.com"
}

Argument Reference

The following arguments are supported:

  • service - (Required) The service to enable.

  • project - (Optional) The project ID. If not provided, the provider project is used.