Skip to content

Commit a0512a6

Browse files
committed
Lint fixes
1 parent 2e13405 commit a0512a6

File tree

4 files changed

+57
-15
lines changed

4 files changed

+57
-15
lines changed

modules/data_warehouse/versions.tf

-8
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ terraform {
2424
source = "hashicorp/google-beta"
2525
version = ">= 4.52, < 6"
2626
}
27-
random = {
28-
source = "hashicorp/random"
29-
version = ">= 2"
30-
}
31-
archive = {
32-
source = "hashicorp/archive"
33-
version = ">= 2"
34-
}
3527
time = {
3628
source = "hashicorp/time"
3729
version = ">= 0.9.1"

modules/data_warehouse/workflow_polling/main.tf

+3-6
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,13 @@ data "http" "call_workflows_state" {
3838

3939
## Parse out the workflow execution state from the API call response
4040
locals {
41-
response_body = jsondecode(data.http.call_workflows_state.response_body)
41+
response_body = jsondecode(data.http.call_workflows_state.response_body)
4242
workflow_state = local.response_body.executions[0].state
43-
depends_on = [
44-
time_sleep.workflow_execution_wait,
45-
data.http.call_workflows_state
46-
]
4743
}
4844

4945
## 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."
5148
value = local.workflow_state
5249
}
5350

modules/data_warehouse/workflow_polling/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ variable "input_workflow_state" {
44
}
55

66
variable "workflow_id" {
7-
type = string
7+
type = string
88
description = "The identifer of a workflow created by Terraform. Format is projects/{project ID}/locations/{region}/workflows/{workflow name}"
99
}
1010

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
}

0 commit comments

Comments
 (0)