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.
Parameters
-
apis
optional computed - list of object
A list of API objects.
-
methods
- list of object-
name
- string -
request_type
- string -
response_type
- string -
syntax
- string
-
-
name
- string -
syntax
- string -
version
- string -
config_id
optional computed - string
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.
-
dns_address
optional computed - string
The address at which the service can be found - usually the same as the service name.
-
endpoints
optional computed - list of object
A list of Endpoint objects.
-
address
- string -
name
- string -
grpc_config
optional - string
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.
-
id
optional computed - string -
openapi_config
optional - string
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.
-
project
optional computed - string
The project ID that the service belongs to. If not provided, provider project is used.
-
protoc_output_base64
optional - string
The full contents of the Service Descriptor File generated by protoc. This should be a compiled .pb file, base64-encoded.
-
service_name
required - string
The name of the service. Usually of the form $apiname.endpoints.$projectid.cloud.goog.
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.