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_timeoptional computed - string
The timestamp of when the workflow was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
-
descriptionoptional 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.
-
nameoptional computed - string
Name of the Workflow.
-
name_prefixoptional computed - string -
projectoptional computed - string -
regionoptional - string
The region of the workflow.
-
revision_idoptional computed - string
The revision of the workflow. A new one is generated if the service account or source contents is changed.
-
service_accountoptional 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_contentsoptional - string
Workflow code to be executed. The size limit is 32KB.
-
stateoptional computed - string
State of the workflow deployment.
-
update_timeoptional 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.