-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathmetadata.yaml
More file actions
141 lines (140 loc) · 4.99 KB
/
metadata.yaml
File metadata and controls
141 lines (140 loc) · 4.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: blueprints.cloud.google.com/v1alpha1
kind: BlueprintMetadata
metadata:
name: terraform-google-cloud-workflow
annotations:
config.kubernetes.io/local-config: "true"
spec:
info:
title: terraform-google-cloud-workflow
source:
repo: https://github.com/GoogleCloudPlatform/terraform-google-cloud-workflows.git
sourceType: git
version: 0.2.0
actuationTool:
flavor: Terraform
version: ">= 1.3"
description: {}
content:
subBlueprints:
- name: simple_workflow
location: modules/simple_workflow
examples:
- name: gcs_event_arc_trigger_workflow
location: examples/gcs_event_arc_trigger_workflow
- name: pubsub_event_arc_trigger_workflow
location: examples/pubsub_event_arc_trigger_workflow
- name: schedule_workflow
location: examples/schedule_workflow
- name: schedule_workflow_autocreate_sa
location: examples/schedule_workflow_autocreate_sa
- name: schedule_workflow_with_arguments
location: examples/schedule_workflow_with_arguments
- name: simple_workflow
location: examples/simple_workflow
interfaces:
variables:
- name: project_id
description: The project ID to deploy to
varType: string
required: true
- name: workflow_name
description: The name of the cloud workflow to create
varType: string
required: true
- name: workflow_description
description: Description for the cloud workflow
varType: string
defaultValue: Sample workflow Description
- name: region
description: The name of the region where workflow will be created
varType: string
required: true
- name: workflow_source
description: Workflow YAML code to be executed. The size limit is 32KB.
varType: string
required: true
- name: workflow_labels
description: A set of key/value label pairs to assign to the workflow
varType: map(string)
defaultValue: {}
- name: workflow_trigger
description: Trigger for the Workflow . Cloud Scheduler OR Event Arc
varType: |-
object({
cloud_scheduler = optional(object({
name = string
cron = string
time_zone = string
deadline = string
argument = optional(string)
service_account_email = string
}))
event_arc = optional(object({
name = string
service_account_email = string
matching_criteria = set(object({
attribute = string
operator = optional(string)
value = string
}))
pubsub_topic_id = optional(string)
}))
})
required: true
- name: service_account_email
description: Service account email. Unused if service account is auto-created.
varType: string
- name: service_account_create
description: Auto-create service account.
varType: bool
defaultValue: false
outputs:
- name: event_arc_id
description: Google Event Arc id
type: string
- name: scheduler_job_id
description: Google Cloud scheduler job id
- name: workflow_id
description: Workflow identifier for the resource with format projects/{{project}}/locations/{{region}}/workflows/{{name}}
type: string
- name: workflow_region
description: The region of the workflow.
type: string
- name: workflow_revision_id
description: The revision of the workflow. A new one is generated if the service account or source contents is changed.
type: string
requirements:
roles:
- level: Project
roles:
- roles/owner
services:
- iam.googleapis.com
- cloudresourcemanager.googleapis.com
- storage-api.googleapis.com
- serviceusage.googleapis.com
- workflows.googleapis.com
- cloudscheduler.googleapis.com
- eventarc.googleapis.com
- pubsub.googleapis.com
- logging.googleapis.com
- storage.googleapis.com
providerVersions:
- source: hashicorp/google
version: ">= 3.53, < 5.0"
- source: hashicorp/random
version: ~> 3.4.3