File tree 4 files changed +57
-15
lines changed
4 files changed +57
-15
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,6 @@ terraform {
24
24
source = " hashicorp/google-beta"
25
25
version = " >= 4.52, < 6"
26
26
}
27
- random = {
28
- source = " hashicorp/random"
29
- version = " >= 2"
30
- }
31
- archive = {
32
- source = " hashicorp/archive"
33
- version = " >= 2"
34
- }
35
27
time = {
36
28
source = " hashicorp/time"
37
29
version = " >= 0.9.1"
Original file line number Diff line number Diff line change @@ -38,16 +38,13 @@ data "http" "call_workflows_state" {
38
38
39
39
# # Parse out the workflow execution state from the API call response
40
40
locals {
41
- response_body = jsondecode (data. http . call_workflows_state . response_body )
41
+ response_body = jsondecode (data. http . call_workflows_state . response_body )
42
42
workflow_state = local. response_body . executions [0 ]. state
43
- depends_on = [
44
- time_sleep . workflow_execution_wait ,
45
- data . http . call_workflows_state
46
- ]
47
43
}
48
44
49
45
# # Output the workflow state to use as input for subsequent invocations
50
- output workflow_state {
46
+ output "workflow_state" {
47
+ description = " State of the most recent workflow execution. Used to determine how to proceed with next polling run."
51
48
value = local. workflow_state
52
49
}
53
50
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ variable "input_workflow_state" {
4
4
}
5
5
6
6
variable "workflow_id" {
7
- type = string
7
+ type = string
8
8
description = " The identifer of a workflow created by Terraform. Format is projects/{project ID}/locations/{region}/workflows/{workflow name}"
9
9
}
10
10
Original file line number Diff line number Diff line change
1
+ /* *
2
+ * Copyright 2023 Google LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ terraform {
18
+ required_providers {
19
+ google = {
20
+ source = " hashicorp/google"
21
+ version = " >= 4.52, < 6"
22
+ }
23
+ google-beta = {
24
+ source = " hashicorp/google-beta"
25
+ version = " >= 4.52, < 6"
26
+ }
27
+ random = {
28
+ source = " hashicorp/random"
29
+ version = " >= 2"
30
+ }
31
+ archive = {
32
+ source = " hashicorp/archive"
33
+ version = " >= 2"
34
+ }
35
+ time = {
36
+ source = " hashicorp/time"
37
+ version = " >= 0.9.1"
38
+ }
39
+ http = {
40
+ source = " hashicorp/http"
41
+ version = " >= 2"
42
+ }
43
+ local = {
44
+ source = " hashicorp/local"
45
+ version = " >=2.4"
46
+ }
47
+ }
48
+ required_version = " >= 0.13"
49
+
50
+ provider_meta "google" {
51
+ module_name = " blueprints/terraform/terraform-google-bigquery:data_warehouse/v7.0.0"
52
+ }
53
+ }
You can’t perform that action at this time.
0 commit comments