-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
42 lines (39 loc) · 962 Bytes
/
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
########## COMMON VARIABLES ############
variable "main" {
type = object({
project = string
region = string
zone = string
env = string
})
}
# variable for bq datataset #
variable "bigquery_dataset" {
type = object({
dataset_id = string
dataset_description = string
delete_contents_on_destroy = bool
})
}
# variable for bq table #
variable "table" {
type = object({
dataset_id = string
table_id = string
description = string
deletion_protection = bool
schema = string
})
}
# variable for bq table with for each#
variable "table-pf" {
type = map(object({
dataset_id = string
table_id = string
description = string
deletion_protection = bool
schema = string
partitioning_field = string
partitioning_type = string
}))
}