-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
106 lines (91 loc) · 3.22 KB
/
variables.tf
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
/**
* Copyright 2019 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.
*/
variable "project_id" {
type = string
description = "The project in which the resource belongs. If it is not provided, the provider project is used."
}
variable "name" {
type = string
description = "The name of the dataflow job"
}
variable "template_gcs_path" {
type = string
description = "The GCS path to the Dataflow job template."
}
variable "temp_gcs_location" {
type = string
description = "A writeable location on GCS for the Dataflow job to dump its temporary data."
}
variable "parameters" {
type = map(string)
description = "Key/Value pairs to be passed to the Dataflow job (as used in the template)."
default = {}
}
variable "max_workers" {
type = number
description = " The number of workers permitted to work on the job. More workers may improve processing speed at additional cost."
default = 1
}
variable "on_delete" {
type = string
description = "One of drain or cancel. Specifies behavior of deletion during terraform destroy. The default is cancel."
default = "cancel"
}
variable "region" {
type = string
description = "The region in which the created job should run. Also determines the location of the staging bucket if created."
default = "us-central1"
}
variable "zone" {
type = string
description = "The zone in which the created job should run."
default = "us-central1-a"
}
variable "service_account_email" {
type = string
description = "The Service Account email that will be used to identify the VMs in which the jobs are running"
default = ""
}
variable "subnetwork_self_link" {
type = string
description = "The subnetwork self link to which VMs will be assigned."
default = ""
}
variable "network_self_link" {
type = string
description = "The network self link to which VMs will be assigned."
default = "default"
}
variable "machine_type" {
type = string
description = "The machine type to use for the job."
default = ""
}
variable "ip_configuration" {
type = string
description = "The configuration for VM IPs. Options are 'WORKER_IP_PUBLIC' or 'WORKER_IP_PRIVATE'."
default = "WORKER_IP_PRIVATE"
}
variable "kms_key_name" {
type = string
description = "The name for the Cloud KMS key for the job. Key format is: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY"
default = null
}
variable "additional_experiments" {
type = list
description = "(Optional) List of experiments that should be used by the job. An example value is [\"enable_stackdriver_agent_metrics\"]"
default = null
}