Google Cloud Build Worker Pool

This page shows how to write Terraform for Cloud Build Worker Pool and write them securely.

google_cloudbuild_worker_pool (Terraform)

The Worker Pool in Cloud Build can be configured in Terraform with the resource name google_cloudbuild_worker_pool. 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).

Parameters

The following arguments are supported:

  • location - (Required) The location for the resource
  • name - (Required) User-defined name of the WorkerPool.

  • network_config - (Optional) Network configuration for the WorkerPool. Structure is documented below.
  • project - (Optional) The project for the resource
  • worker_config - (Optional) Configuration to be used for a creating workers in the WorkerPool. Structure is documented below.

The network_config block supports:

The worker_config block supports:

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format projects/[[project]]/locations/[[location]]/workerPools/[[name]]

  • create_time - Output only. Time at which the request to create the WorkerPool was received.

  • delete_time - Output only. Time at which the request to delete the WorkerPool was received.

  • state - Output only. WorkerPool state. Possible values: STATE_UNSPECIFIED, PENDING, APPROVED, REJECTED, CANCELLED

  • update_time - Output only. Time at which the request to update the WorkerPool was received.

Explanation in Terraform Registry

Definition of custom Cloud Build WorkerPools for running jobs with custom configuration and custom networking. -> This resource is not currently public, and requires allow-listing of projects prior to use.

Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources.

Frequently asked questions

What is Google Cloud Build Worker Pool?

Google Cloud Build Worker Pool is a resource for Cloud Build of Google Cloud Platform. Settings can be wrote in Terraform.

security-icon

Automate config file reviews on your commits

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