Google Workflows Workflow

This page shows how to write Terraform for Workflows Workflow and write them securely.

google_workflows_workflow (Terraform)

The Workflow in Workflows can be configured in Terraform with the resource name google_workflows_workflow. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub
resource "google_workflows_workflow" "sample_workflow" {
  name = "sample_workflow"
  description = "sample workflow"
  service_account =
  source_contents = file("sample.workflow.yml")
resource "google_workflows_workflow" "pipeline-workflow" {
  provider = google-beta
  name            = "pipeline-workflow"
  region          = var.region
  description     = "Magic"
  service_account =
resource "google_workflows_workflow" "toggl_to_pixela" {
  name            = "toggl_to_pixela_workflow"
  description     = "toggl to pixela workflow"
  region          = local.region
  service_account =
  source_contents = file("toggl-to-pixela.workflow.yml")

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).


The timestamp of when the workflow was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.

Description of the workflow provided by the user. Must be at most 1000 unicode characters long.

  • id optional computed - string
  • labels optional - map from string to string

A set of key/value label pairs to assign to this Workflow.

  • name optional computed - string

Name of the Workflow.

The region of the workflow.

The revision of the workflow. A new one is generated if the service account or source contents is changed.

Name of the service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/[project]/serviceAccounts/[account].

Workflow code to be executed. The size limit is 32KB.

  • state optional computed - string

State of the workflow deployment.

The timestamp of when the workflow was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.

Explanation in Terraform Registry

Workflow program to be executed by Workflows. To get more information about Workflow, see:

Frequently asked questions

What is Google Workflows Workflow?

Google Workflows Workflow is a resource for Workflows of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google Workflows Workflow?

For Terraform, the swfz/terraform-sample, Dualic/apiprojekti and swfz/toggl-to-pixela-cloud-workflows source code examples are useful. See the Terraform Example section for further details.


Automate config file reviews on your commits

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