forked from aztfmod/terraform-azurerm-caf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data_factory.tf
62 lines (51 loc) · 2.58 KB
/
data_factory.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
##### azurerm_data_factory
module "data_factory" {
source = "./modules/data_factory/data_factory"
for_each = local.data_factory.data_factory
name = each.value.name
resource_group_name = local.resource_groups[each.value.resource_group_key].name
location = lookup(each.value, "region", null) == null ? local.resource_groups[each.value.resource_group_key].location : local.global_settings.regions[each.value.region]
github_configuration = try(each.value.github_configuration, null)
identity = try(each.value.identity, null)
vsts_configuration = try(each.value.vsts_configuration, null)
global_settings = local.global_settings
base_tags = try(local.global_settings.inherit_tags, false) ? local.resource_groups[each.value.resource_group_key].tags : {}
tags = try(each.value.tags, null)
}
output "data_factory" {
value = module.data_factory
}
##### azurerm_data_factory_pipeline
module "data_factory_pipeline" {
source = "./modules/data_factory/data_factory_pipeline"
for_each = local.data_factory.data_factory_pipeline
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
description = try(each.value.description, null)
annotations = try(each.value.annotations, null)
parameters = try(each.value.parameters, null)
variables = try(each.value.variables, null)
activities_json = try(each.value.activities_json, null)
}
output "data_factory_pipeline" {
value = module.data_factory_pipeline
}
##### azurerm_data_factory_trigger_schedule
module "data_factory_trigger_schedule" {
source = "./modules/data_factory/data_factory_trigger_schedule"
for_each = local.data_factory.data_factory_trigger_schedule
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
pipeline_name = module.data_factory_pipeline[each.value.data_factory_pipeline_key].name
start_time = try(each.value.start_time, null)
end_time = try(each.value.end_time, null)
interval = try(each.value.interval, null)
frequency = try(each.value.frequency, null)
pipeline_parameters = try(each.value.pipeline_parameters, null)
annotations = try(each.value.annotations, null)
}
output "data_factory_trigger_schedule" {
value = module.data_factory_trigger_schedule
}