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 = google_service_account.workflow_invoker.id
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 = google_service_account.terra.id
resource "google_workflows_workflow" "toggl_to_pixela" {
name = "toggl_to_pixela_workflow"
description = "toggl to pixela workflow"
region = local.region
service_account = google_service_account.workflow_invoker.id
source_contents = file("toggl-to-pixela.workflow.yml")
Parameters
-
create_time
optional computed - string
The timestamp of when the workflow was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
-
description
optional computed - string
Description of the workflow provided by the user. Must be at most 1000 unicode characters long.
A set of key/value label pairs to assign to this Workflow.
-
name
optional computed - string
Name of the Workflow.
-
name_prefix
optional computed - string -
project
optional computed - string -
region
optional - string
The region of the workflow.
-
revision_id
optional computed - string
The revision of the workflow. A new one is generated if the service account or source contents is changed.
-
service_account
optional computed - string
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].
-
source_contents
optional - string
Workflow code to be executed. The size limit is 32KB.
-
state
optional computed - string
State of the workflow deployment.
-
update_time
optional computed - string
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:
- API documentation
- How-to Guides
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.