-
Notifications
You must be signed in to change notification settings - Fork 703
/
data_factory_datasets.tf
136 lines (104 loc) · 7.15 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
##### azurerm_data_factory
module "data_factory_dataset_azure_blob" {
source = "./modules/data_factory/datasets/azure_blob"
for_each = local.data_factory.datasets.azure_blob
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_azure_blob_storage[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name
}
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
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_cosmosdb[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name
}
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
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_web[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name
}
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
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_web[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name
}
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
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_web[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name
}
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
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_mysql[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name
}
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
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_postgresql[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name
}
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
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_sql_server[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name
}
output "data_factory_dataset_sql_server_table" {
value = module.data_factory_dataset_sql_server_table
}