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 services list.

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.

  • disable_on_destroy - (Optional) If true, disable the service when the terraform resource is destroyed. Defaults to true. May be useful in the event that a project is long-lived but the infrastructure running in that project changes frequently.

Import

Project services can be imported using the project_id and service, e.g.

$ terraform import google_project_services.my_project your-project-id/iam.googleapis.com

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/google/r/google_project_service.html