forked from aztfmod/terraform-azurerm-caf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data_factory_datasets.tf
196 lines (165 loc) · 8.84 KB
/
data_factory_datasets.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
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
##### azurerm_data_factory
module "data_factory_dataset_azure_blob" {
source = "./modules/data_factory/datasets/azure_blob"
for_each = local.data_factory.datasets.azure_blob
name = each.value.name
resource_group_name = local.resource_groups[each.value.resource_group_key].name
data_factory_name = module.data_factory[each.value.data_factory_key].name
linked_service_name = local.data_factory.linked_services[each.value.linked_service_key]
folder = try(each.value.folder, null)
description = try(each.value.description, null)
annotations = try(each.value.annotations, null)
parameters = try(each.value.parameters, null)
additional_properties = try(each.value.additional_properties, null)
schema_column = try(each.value.schema_column, null)
path = each.value.path
filename = each.value.filename
}
output "data_factory_dataset_azure_blob" {
value = module.data_factory_dataset_azure_blob
}
##### azurerm_data_factory_dataset_cosmosdb_sqlapi
module "data_factory_dataset_cosmosdb_sqlapi" {
source = "./modules/data_factory/datasets/cosmosdb_sqlapi"
for_each = local.data_factory.datasets.cosmosdb_sqlapi
name = each.value.name
resource_group_name = local.resource_groups[each.value.resource_group_key].name
data_factory_name = module.data_factory[each.value.data_factory_key].name
linked_service_name = local.data_factory.linked_services[each.value.linked_service_key].name
folder = try(each.value.folder, null)
description = try(each.value.description, null)
annotations = try(each.value.annotations, null)
parameters = try(each.value.parameters, null)
additional_properties = try(each.value.additional_properties, null)
schema_column = try(each.value.schema_column, null)
collection_name = try(each.value.collection_name, null)
}
output "data_factory_dataset_cosmosdb_sqlapi" {
value = module.data_factory_dataset_cosmosdb_sqlapi
}
##### azurerm_data_factory_dataset_delimited_text
module "data_factory_dataset_delimited_text" {
source = "./modules/data_factory/datasets/delimited_text"
for_each = local.data_factory.datasets.delimited_text
name = each.value.name
resource_group_name = local.resource_groups[each.value.resource_group_key].name
data_factory_name = module.data_factory[each.value.data_factory_key].name
linked_service_name = local.data_factory.linked_services[each.value.linked_service_key]
folder = try(each.value.folder, null)
description = try(each.value.description, null)
annotations = try(each.value.annotations, null)
parameters = try(each.value.parameters, null)
additional_properties = try(each.value.additional_properties, null)
schema_column = try(each.value.schema_column, null)
http_server_location = try(each.value.http_server_location, null)
azure_blob_storage_location = try(each.value.azure_blob_storage_location, null)
column_delimiter = each.value.column_delimiter
row_delimiter = each.value.row_delimiter
encoding = each.value.encoding
quote_character = each.value.quote_character
escape_character = each.value.escape_character
first_row_as_header = each.value.first_row_as_header
null_value = each.value.null_value
}
output "data_factory_dataset_delimited_text" {
value = module.data_factory_dataset_delimited_text
}
##### azurerm_data_factory_dataset_http
module "data_factory_dataset_http" {
source = "./modules/data_factory/datasets/http"
for_each = local.data_factory.datasets.http
name = each.value.name
resource_group_name = local.resource_groups[each.value.resource_group_key].name
data_factory_name = module.data_factory[each.value.data_factory_key].name
linked_service_name = local.data_factory.linked_services[each.value.linked_service_key].name
folder = try(each.value.folder, null)
description = try(each.value.description, null)
annotations = try(each.value.annotations, null)
parameters = try(each.value.parameters, null)
additional_properties = try(each.value.additional_properties, null)
schema_column = try(each.value.schema_column, null)
relative_url = each.value.relative_url
request_body = each.value.request_body
request_method = each.value.request_method
}
output "data_factory_dataset_http" {
value = module.data_factory_dataset_http
}
##### azurerm_data_factory_dataset_json
module "data_factory_dataset_json" {
source = "./modules/data_factory/datasets/json"
for_each = local.data_factory.datasets.json
name = each.value.name
resource_group_name = local.resource_groups[each.value.resource_group_key].name
data_factory_name = module.data_factory[each.value.data_factory_key].name
linked_service_name = local.data_factory.linked_services[each.value.linked_service_key].name
folder = try(each.value.folder, null)
description = try(each.value.description, null)
annotations = try(each.value.annotations, null)
parameters = try(each.value.parameters, null)
additional_properties = try(each.value.additional_properties, null)
schema_column = try(each.value.schema_column, null)
http_server_location = try(each.value.http_server_location, null)
azure_blob_storage_location = try(each.value.azure_blob_storage_location, null)
encoding = each.value.encoding
}
output "data_factory_dataset_json" {
value = module.data_factory_dataset_json
}
##### azurerm_data_factory_dataset_mysql
module "data_factory_dataset_mysql" {
source = "./modules/data_factory/datasets/mysql"
for_each = local.data_factory.datasets.mysql
name = each.value.name
resource_group_name = local.resource_groups[each.value.resource_group_key].name
data_factory_name = module.data_factory[each.value.data_factory_key].name
linked_service_name = local.data_factory.linked_services[each.value.linked_service_key].name
folder = try(each.value.folder, null)
description = try(each.value.description, null)
annotations = try(each.value.annotations, null)
parameters = try(each.value.parameters, null)
additional_properties = try(each.value.additional_properties, null)
schema_column = try(each.value.schema_column, null)
table_name = try(each.value.table_name, null)
}
output "data_factory_dataset_mysql" {
value = module.data_factory_dataset_mysql
}
##### azurerm_data_factory_dataset_postgresql
module "data_factory_dataset_postgresql" {
source = "./modules/data_factory/datasets/postgresql"
for_each = local.data_factory.datasets.postgresql
name = each.value.name
resource_group_name = local.resource_groups[each.value.resource_group_key].name
data_factory_name = module.data_factory[each.value.data_factory_key].name
linked_service_name = local.data_factory.linked_services[each.value.linked_service_key].name
folder = try(each.value.folder, null)
description = try(each.value.description, null)
annotations = try(each.value.annotations, null)
parameters = try(each.value.parameters, null)
additional_properties = try(each.value.additional_properties, null)
schema_column = try(each.value.schema_column, null)
table_name = try(each.value.table_name, null)
}
output "data_factory_dataset_postgresql" {
value = module.data_factory_dataset_postgresql
}
##### azurerm_data_factory_dataset_sql_server_table
module "data_factory_dataset_sql_server_table" {
source = "./modules/data_factory/datasets/sql_server_table"
for_each = local.data_factory.datasets.sql_server_table
name = each.value.name
resource_group_name = local.resource_groups[each.value.resource_group_key].name
data_factory_name = module.data_factory[each.value.data_factory_key].name
linked_service_name = local.data_factory.linked_services[each.value.linked_service_key].name
folder = try(each.value.folder, null)
description = try(each.value.description, null)
annotations = try(each.value.annotations, null)
parameters = try(each.value.parameters, null)
additional_properties = try(each.value.additional_properties, null)
schema_column = try(each.value.schema_column, null)
table_name = try(each.value.table_name, null)
}
output "data_factory_dataset_sql_server_table" {
value = module.data_factory_dataset_sql_server_table
}