Google Cloud Endpoints Service

This page shows how to write Terraform for Cloud Endpoints Service and write them securely.

google_endpoints_service (Terraform)

The Service in Cloud Endpoints can be configured in Terraform with the resource name google_endpoints_service. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Review your Terraform file for Google best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).


  • apis optional computed - list of object

A list of API objects.

The autogenerated ID for the configuration that is rolled out as part of the creation of this resource. Must be provided to compute engine instances as a tag.

The address at which the service can be found - usually the same as the service name.

A list of Endpoint objects.

The full text of the Service Config YAML file (Example located here). If provided, must also provide protoc_output_base64. open_api config must not be provided.

The full text of the OpenAPI YAML configuration as described here. Either this, or both of grpc_config and protoc_output_base64 must be specified.

The project ID that the service belongs to. If not provided, provider project is used.

The full contents of the Service Descriptor File generated by protoc. This should be a compiled .pb file, base64-encoded.

The name of the service. Usually of the form $apiname.endpoints.$

Explanation in Terraform Registry

This resource creates and rolls out a Cloud Endpoints service using OpenAPI or gRPC. View the relevant docs for OpenAPI and gRPC.

Frequently asked questions

What is Google Cloud Endpoints Service?

Google Cloud Endpoints Service is a resource for Cloud Endpoints of Google Cloud Platform. Settings can be wrote in Terraform.


Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.